aboutsummaryrefslogtreecommitdiffstats
path: root/src/scenario/angular.suffix
diff options
context:
space:
mode:
authorMisko Hevery2010-10-19 15:34:58 -0700
committerMisko Hevery2010-10-19 15:56:53 -0700
commit01c7abab35dbdee711c54875424b388f8631a3c0 (patch)
tree00a4adee508a9e854881f7ecea5e779fb6d48a80 /src/scenario/angular.suffix
parente7e894a2e36e042be6d62af56b0f3126f4e4fc77 (diff)
downloadangular.js-01c7abab35dbdee711c54875424b388f8631a3c0.tar.bz2
Fix browser triggering in scenario to always do native events.
- Also fixed angular.suffix for scenarios - refactored click() to browserTrigger() - Fixed Rakefile with CSS and jQuery
Diffstat (limited to 'src/scenario/angular.suffix')
-rw-r--r--src/scenario/angular.suffix13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/scenario/angular.suffix b/src/scenario/angular.suffix
index 53d99dd2..c38f0ab5 100644
--- a/src/scenario/angular.suffix
+++ b/src/scenario/angular.suffix
@@ -4,22 +4,19 @@
try {
if (previousOnLoad) previousOnLoad();
} catch(e) {}
- jQuery(document.body).append(
+ _jQuery(document.body).append(
'<div id="runner"></div>' +
'<div id="frame"></div>'
);
- var frame = jQuery('#frame');
- var runner = jQuery('#runner');
+ var frame = _jQuery('#frame');
+ var runner = _jQuery('#runner');
var application = new angular.scenario.Application(frame);
var ui = new angular.scenario.ui.Html(runner);
- $scenario.run(ui, application, function(error) {
+ $scenario.run(ui, application, angular.scenario.SpecRunner, function(error) {
frame.remove();
if (error) {
if (window.console) {
- console.log(error);
- if (error.stack) {
- console.log(error.stack);
- }
+ console.log(error.stack || error);
} else {
// Do something for IE
alert(error);