From 2430f52bb97fa9d682e5f028c977c5bf94c5ec38 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Fri, 23 Mar 2012 14:03:24 -0700 Subject: chore(module): move files around in preparation for more modules --- test/scenario/e2e/Runner-compiled.html | 9 ---- test/scenario/e2e/Runner.html | 9 ---- test/scenario/e2e/style.css | 11 ---- test/scenario/e2e/widgets-scenario.js | 67 ----------------------- test/scenario/e2e/widgets.html | 99 ---------------------------------- 5 files changed, 195 deletions(-) delete mode 100644 test/scenario/e2e/Runner-compiled.html delete mode 100644 test/scenario/e2e/Runner.html delete mode 100644 test/scenario/e2e/style.css delete mode 100644 test/scenario/e2e/widgets-scenario.js delete mode 100644 test/scenario/e2e/widgets.html (limited to 'test/scenario/e2e') diff --git a/test/scenario/e2e/Runner-compiled.html b/test/scenario/e2e/Runner-compiled.html deleted file mode 100644 index 530fef96..00000000 --- a/test/scenario/e2e/Runner-compiled.html +++ /dev/null @@ -1,9 +0,0 @@ - - -
- - - - - - diff --git a/test/scenario/e2e/Runner.html b/test/scenario/e2e/Runner.html deleted file mode 100644 index 1191dc86..00000000 --- a/test/scenario/e2e/Runner.html +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/test/scenario/e2e/style.css b/test/scenario/e2e/style.css deleted file mode 100644 index 26540bec..00000000 --- a/test/scenario/e2e/style.css +++ /dev/null @@ -1,11 +0,0 @@ -th { - text-align: left; -} - -tr { - border: 1px solid black; -} - -.redbox { - background-color: red; -} diff --git a/test/scenario/e2e/widgets-scenario.js b/test/scenario/e2e/widgets-scenario.js deleted file mode 100644 index fda9b3c6..00000000 --- a/test/scenario/e2e/widgets-scenario.js +++ /dev/null @@ -1,67 +0,0 @@ -'use strict'; - -describe('widgets', function() { - it('should verify that basic widgets work', function() { - browser().navigateTo('widgets.html'); - - using('#text-basic-box').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(using('#gender-box').binding('gender')).toEqual('female'); - - expect(repeater('#repeater-row ul li').count()).toEqual(2); - expect(repeater('#repeater-row ul li').row(1)).toEqual(['adam']); - expect(repeater('#repeater-row ul li').column('name')).toEqual(['misko', 'adam']); - - select('select').option('B'); - expect(binding('select')).toEqual('B'); - - select('multiselect').options('A', 'C'); - expect(binding('multiselect').fromJson()).toEqual(['A', 'C']); - - expect(binding('button').fromJson()).toEqual({'count': 0}); - expect(binding('form').fromJson()).toEqual({'count': 0}); - - element('form a', "'action' link").click(); - expect(binding('button').fromJson()).toEqual({'count': 1}); - - element('input[value="submit input"]', "'submit input' button").click(); - expect(binding('button').fromJson()).toEqual({'count': 2}); - expect(binding('form').fromJson()).toEqual({'count': 1}); - - element('button:contains("submit button")', "'submit button' button").click(); - expect(binding('button').fromJson()).toEqual({'count': 2}); - expect(binding('form').fromJson()).toEqual({'count': 2}); - - element('input[value="button"]', "'button' button").click(); - expect(binding('button').fromJson()).toEqual({'count': 3}); - - element('input[type="image"]', 'form image').click(); - expect(binding('button').fromJson()).toEqual({'count': 4}); - - /** - * Custom value parser for futures. - */ - function checkboxParser(value) { - return angular.fromJson(value.substring(value.indexOf('=')+1)); - } - - input('checkbox.tea').check(); - expect(binding('checkbox').parsedWith(checkboxParser)).toEqual({coffee: false, tea: false}); - input('checkbox.coffee').check(); - expect(binding('checkbox').parsedWith(checkboxParser)).toEqual({coffee: true, tea: false}); - input('checkbox.tea').check(); - input('checkbox.tea').check(); - input('checkbox.tea').check(); - expect(binding('checkbox').parsedWith(checkboxParser)).toEqual({coffee: true, tea: true}); - }); -}); diff --git a/test/scenario/e2e/widgets.html b/test/scenario/e2e/widgets.html deleted file mode 100644 index f986144e..00000000 --- a/test/scenario/e2e/widgets.html +++ /dev/null @@ -1,99 +0,0 @@ - - - - - - - -| Description | -Test | -Result | -
|---|---|---|
| Input text field | ||
| basic | -- - | -text.basic={{text.basic}} | -
| password | -- | text.password={{text.password}} | -
| hidden | -- | text.hidden={{text.hidden}} | -
| Input selection field | ||
| radio | -
- Female - Male - |
- gender={{gender}} | -
| checkbox | -
- Tea - Coffe - |
-
- checkbox={{checkbox}}
- |
-
| select | -- - | -select={{select}} | -
| multiselect | -- - | -multiselect={{multiselect}} | -
| Buttons | ||
| ng-change ng-click |
- - - | -button={{button}} form={{form}} | -
| Repeaters | ||
| ng-repeat | -
-
|
- - |