From 03df6cbddbb80186caf571e29957370b2ef9881c Mon Sep 17 00:00:00 2001 From: Elliott Sprehn Date: Fri, 8 Oct 2010 16:43:40 -0700 Subject: New Angular Scenario runner and DSL system with redesigned HTML UI. Uses the Jasmine syntax for tests, ex: describe('widgets', function() { it('should verify that basic widgets work', function(){ navigateTo('widgets.html'); input('text.basic').enter('Carlos'); expect(binding('text.basic')).toEqual('Carlos'); input('text.basic').enter('Carlos Santana'); expect(binding('text.basic')).not().toEqual('Carlos Boozer'); input('text.password').enter('secret'); expect(binding('text.password')).toEqual('secret'); expect(binding('text.hidden')).toEqual('hiddenValue'); expect(binding('gender')).toEqual('male'); input('gender').select('female'); expect(binding('gender')).toEqual('female'); }); }); Note: To create new UI's implement the interface shown in angular.scenario.ui.Html. --- test/scenario/TestContext.js | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 test/scenario/TestContext.js (limited to 'test/scenario/TestContext.js') diff --git a/test/scenario/TestContext.js b/test/scenario/TestContext.js deleted file mode 100644 index 0c8e6143..00000000 --- a/test/scenario/TestContext.js +++ /dev/null @@ -1,15 +0,0 @@ -var _window, runner, log, $scenario; - -function logger(text) { - return function(done){ - log += text; - (done||noop)(); - }; -} - -function setUpContext() { - _window = {}; - runner = new angular.scenario.Runner(_window, _jQuery); - $scenario = _window.$scenario; - log = ''; -} -- cgit v1.2.3