');
- expect(e).not.toHaveClass('none');
- expect(e).toHaveClass('abc');
- });
-});
diff --git a/test/ngScenario/mocks.js b/test/ngScenario/mocks.js
deleted file mode 100644
index 849d78d9bba9..000000000000
--- a/test/ngScenario/mocks.js
+++ /dev/null
@@ -1,33 +0,0 @@
-'use strict';
-
-angular.scenario.testing = angular.scenario.testing || {};
-
-angular.scenario.testing.MockAngular = function() {
- this.reset();
- this.element = jqLite;
-};
-
-angular.scenario.testing.MockAngular.prototype.reset = function() {
- this.log = [];
-};
-
-angular.scenario.testing.MockAngular.prototype.poll = function() {
- this.log.push('$browser.poll()');
- return this;
-};
-
-angular.scenario.testing.MockRunner = function() {
- this.listeners = [];
-};
-
-angular.scenario.testing.MockRunner.prototype.on = function(eventName, fn) {
- this.listeners[eventName] = this.listeners[eventName] || [];
- this.listeners[eventName].push(fn);
-};
-
-angular.scenario.testing.MockRunner.prototype.emit = function(eventName) {
- var args = Array.prototype.slice.call(arguments, 1);
- angular.forEach(this.listeners[eventName] || [], function(fn) {
- fn.apply(this, args);
- });
-};
diff --git a/test/ngScenario/output/HtmlSpec.js b/test/ngScenario/output/HtmlSpec.js
deleted file mode 100644
index 541d4d4afadf..000000000000
--- a/test/ngScenario/output/HtmlSpec.js
+++ /dev/null
@@ -1,127 +0,0 @@
-'use strict';
-
-describe('angular.scenario.output.html', function() {
- var runner, model, spec, step, listeners, ui, context;
-
- beforeEach(function() {
- listeners = [];
- spec = {
- name: 'test spec',
- definition: {
- id: 10,
- name: 'child',
- children: [],
- parent: {
- id: 20,
- name: 'parent',
- children: []
- }
- }
- };
- step = {
- name: 'some step',
- line: function() { return 'unknown:-1'; }
- };
- runner = new angular.scenario.testing.MockRunner();
- model = new angular.scenario.ObjectModel(runner);
- context = _jQuery('
');
- ui = angular.scenario.output.html(context, runner, model);
- });
-
- it('should create nested describe context', function() {
- runner.emit('SpecBegin', spec);
- expect(context.find('#describe-20 #describe-10 > h2').text()).
- toEqual('describe: child');
- expect(context.find('#describe-20 > h2').text()).toEqual('describe: parent');
- expect(context.find('#describe-10 .tests > li .test-info .test-name').text()).
- toEqual('test spec');
- expect(context.find('#describe-10 .tests > li').hasClass('status-pending')).
- toBeTruthy();
- });
-
- it('should add link on InteractivePause', function() {
- runner.emit('SpecBegin', spec);
- runner.emit('StepBegin', spec, step);
- runner.emit('StepEnd', spec, step);
- runner.emit('StepBegin', spec, step);
- runner.emit('InteractivePause', spec, step);
- expect(context.find('.test-actions .test-title:first').text()).toEqual('some step');
- expect(lowercase(context.find('.test-actions .test-title:last').html())).toEqual(
- 'paused...
resume when ready.'
- );
- });
-
- it('should update totals when steps complete', function() {
- // Failure
- for (var i = 0; i < 3; ++i) {
- runner.emit('SpecBegin', spec);
- runner.emit('StepBegin', spec, step);
- runner.emit('StepFailure', spec, step, 'error');
- runner.emit('StepEnd', spec, step);
- runner.emit('SpecEnd', spec);
- }
-
- // Error
- runner.emit('SpecBegin', spec);
- runner.emit('SpecError', spec, 'error');
- runner.emit('SpecEnd', spec);
-
- // Error
- runner.emit('SpecBegin', spec);
- runner.emit('StepBegin', spec, step);
- runner.emit('StepError', spec, step, 'error');
- runner.emit('StepEnd', spec, step);
- runner.emit('SpecEnd', spec);
-
- // Success
- runner.emit('SpecBegin', spec);
- runner.emit('StepBegin', spec, step);
- runner.emit('StepEnd', spec, step);
- runner.emit('SpecEnd', spec);
-
- expect(parseInt(context.find('#status-legend .status-failure').text(), 10)).
- toEqual(3);
- expect(parseInt(context.find('#status-legend .status-error').text(), 10)).
- toEqual(2);
- expect(parseInt(context.find('#status-legend .status-success').text(), 10)).
- toEqual(1);
- });
-
- it('should update timer when test completes', function() {
- // Success
- runner.emit('SpecBegin', spec);
- runner.emit('StepBegin', spec, step);
- runner.emit('StepEnd', spec, step);
- runner.emit('SpecEnd', spec);
-
- // Failure
- runner.emit('SpecBegin', spec);
- runner.emit('StepBegin', spec, step);
- runner.emit('StepFailure', spec, step, 'error');
- runner.emit('StepEnd', spec, step);
- runner.emit('SpecEnd', spec);
-
- // Error
- runner.emit('SpecBegin', spec);
- runner.emit('SpecError', spec, 'error');
- runner.emit('SpecEnd', spec);
-
- context.find('#describe-10 .tests > li .test-info .timer-result').
- each(function(index, timer) {
- expect(timer.innerHTML).toMatch(/ms$/);
- }
- );
- });
-
- it('should include line if provided', function() {
- runner.emit('SpecBegin', spec);
- runner.emit('StepBegin', spec, step);
- runner.emit('StepFailure', spec, step, 'error');
- runner.emit('StepEnd', spec, step);
- runner.emit('SpecEnd', spec);
-
- var errorHtml = context.find('#describe-10 .tests li pre').html();
- expect(errorHtml.indexOf('unknown:-1')).toEqual(0);
- });
-
-});
diff --git a/test/ngScenario/output/jsonSpec.js b/test/ngScenario/output/jsonSpec.js
deleted file mode 100644
index 06caf91cae99..000000000000
--- a/test/ngScenario/output/jsonSpec.js
+++ /dev/null
@@ -1,37 +0,0 @@
-'use strict';
-
-describe('angular.scenario.output.json', function() {
- var output, context;
- var runner, model, $window;
- var spec, step;
-
- beforeEach(function() {
- $window = {};
- context = _jQuery('
');
- runner = new angular.scenario.testing.MockRunner();
- model = new angular.scenario.ObjectModel(runner);
- output = angular.scenario.output.json(context, runner, model);
- spec = {
- name: 'test spec',
- definition: {
- id: 10,
- name: 'describe'
- }
- };
- step = {
- name: 'some step',
- line: function() { return 'unknown:-1'; }
- };
- });
-
- it('should put json in context on RunnerEnd', function() {
- runner.emit('SpecBegin', spec);
- runner.emit('StepBegin', spec, step);
- runner.emit('StepEnd', spec, step);
- runner.emit('SpecEnd', spec);
- runner.emit('RunnerEnd');
-
- expect(angular.fromJson(context.html()).children['describe']
- .specs['test spec'].status).toEqual('success');
- });
-});
diff --git a/test/ngScenario/output/objectSpec.js b/test/ngScenario/output/objectSpec.js
deleted file mode 100644
index d92c939d4be2..000000000000
--- a/test/ngScenario/output/objectSpec.js
+++ /dev/null
@@ -1,40 +0,0 @@
-'use strict';
-
-describe('angular.scenario.output.object', function() {
- var output;
- var runner, model, $window;
- var spec, step;
-
- beforeEach(function() {
- $window = {};
- runner = new angular.scenario.testing.MockRunner();
- model = new angular.scenario.ObjectModel(runner);
- runner.$window = $window;
- output = angular.scenario.output.object(null, runner, model);
- spec = {
- name: 'test spec',
- definition: {
- id: 10,
- name: 'describe',
- children: []
- }
- };
- step = {
- name: 'some step',
- line: function() { return 'unknown:-1'; }
- };
- });
-
- it('should create a global variable $result', function() {
- expect($window.$result).toBeDefined();
- });
-
- it('should maintain live state in $result', function() {
- runner.emit('SpecBegin', spec);
- runner.emit('StepBegin', spec, step);
- runner.emit('StepEnd', spec, step);
-
- expect($window.$result.children['describe']
- .specs['test spec'].steps[0].duration).toBeDefined();
- });
-});
diff --git a/test/ngScenario/output/xmlSpec.js b/test/ngScenario/output/xmlSpec.js
deleted file mode 100644
index 32646417cb1d..000000000000
--- a/test/ngScenario/output/xmlSpec.js
+++ /dev/null
@@ -1,49 +0,0 @@
-'use strict';
-
-describe('angular.scenario.output.xml', function() {
- var output, context;
- var runner, model, $window;
- var spec, step;
-
- beforeEach(function() {
- $window = {};
- context = _jQuery('
');
- runner = new angular.scenario.testing.MockRunner();
- model = new angular.scenario.ObjectModel(runner);
- output = angular.scenario.output.xml(context, runner, model);
- spec = {
- name: 'test spec',
- definition: {
- id: 10,
- name: 'describe'
- }
- };
- step = {
- name: 'some step',
- line: function() { return 'unknown:-1'; }
- };
- });
-
- it('should create XML nodes for object model', function() {
- runner.emit('SpecBegin', spec);
- runner.emit('StepBegin', spec, step);
- runner.emit('StepEnd', spec, step);
- runner.emit('SpecEnd', spec);
- runner.emit('RunnerEnd');
- expect(context.find('it').attr('status')).toEqual('success');
- expect(context.find('it step').attr('status')).toEqual('success');
- });
-
- it('should output errors to the XML', function() {
- runner.emit('SpecBegin', spec);
- runner.emit('StepBegin', spec, step);
- runner.emit('StepFailure', spec, step, 'error reason');
- runner.emit('StepEnd', spec, step);
- runner.emit('SpecEnd', spec);
- runner.emit('RunnerEnd');
-
- expect(context.find('it').attr('status')).toEqual('failure');
- expect(context.find('it step').attr('status')).toEqual('failure');
- expect(context.find('it step').text()).toEqual('error reason');
- });
-});
diff --git a/yarn.lock b/yarn.lock
index 551d4e915d41..3685e09df137 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -3644,10 +3644,6 @@ karma-junit-reporter@^1.2.0:
path-is-absolute "^1.0.0"
xmlbuilder "8.2.2"
-karma-ng-scenario@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/karma-ng-scenario/-/karma-ng-scenario-1.0.0.tgz#03315b27ee866f40443cf88bfebf7963f86543e1"
-
karma-sauce-launcher@^1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/karma-sauce-launcher/-/karma-sauce-launcher-1.2.0.tgz#6f2558ddef3cf56879fa27540c8ae9f8bfd16bca"