aboutsummaryrefslogtreecommitdiffstats
path: root/src/scenario/angular.suffix
diff options
context:
space:
mode:
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);