From f4d338d393dabb49182d40b4fe90c4d1b51621c0 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Fri, 9 Mar 2012 00:00:05 -0800 Subject: chore(*): refactor all ng: to ng- --- test/scenario/dslSpec.js | 48 +++++++++++++++++----------------- test/scenario/e2e/Runner-compiled.html | 2 +- test/scenario/e2e/Runner.html | 2 +- test/scenario/e2e/widgets.html | 40 ++++++++++++++-------------- 4 files changed, 46 insertions(+), 46 deletions(-) (limited to 'test/scenario') diff --git a/test/scenario/dslSpec.js b/test/scenario/dslSpec.js index d085256c..0a8ab762 100644 --- a/test/scenario/dslSpec.js +++ b/test/scenario/dslSpec.js @@ -215,40 +215,40 @@ describe("angular.scenario.dsl", function() { describe('Select', function() { it('should select single option', function() { doc.append( - '' + ' ' + ' ' + '' ); $root.dsl.select('test').option('A'); - expect(doc.find('[ng\\:model="test"]').val()).toEqual('A'); + expect(doc.find('[ng-model="test"]').val()).toEqual('A'); }); it('should select option by name', function() { doc.append( - '' + ' ' + ' ' + '' ); $root.dsl.select('test').option('one'); - expect(doc.find('[ng\\:model="test"]').val()).toEqual('A'); + expect(doc.find('[ng-model="test"]').val()).toEqual('A'); }); it('should select multiple options', function() { doc.append( - '' + ' ' + ' ' + ' ' + '' ); $root.dsl.select('test').options('A', 'B'); - expect(doc.find('[ng\\:model="test"]').val()).toEqual(['A','B']); + expect(doc.find('[ng-model="test"]').val()).toEqual(['A','B']); }); it('should fail to select multiple options on non-multiple select', function() { - doc.append(''); + doc.append(''); $root.dsl.select('test').options('A', 'B'); expect($root.futureError).toMatch(/did not match/); }); @@ -468,13 +468,13 @@ describe("angular.scenario.dsl", function() { }); it('should select binding by name', function() { - compile(''); + compile(''); $root.dsl.binding('foo.bar'); expect($root.futureResult).toEqual('some value'); }); it('should select binding by regexp', function() { - compile('some value'); + compile('some value'); $root.dsl.binding(/^foo\..+/); expect($root.futureResult).toEqual('some value'); }); @@ -486,13 +486,13 @@ describe("angular.scenario.dsl", function() { }); it('should select binding in template by name', function() { - compile('
', 'bar');
+        compile('
', 'bar');
         $root.dsl.binding('foo.bar');
         expect($root.futureResult).toEqual('bar');
       });
 
       it('should match bindings by substring match', function() {
-        compile('
', 'binding value');
+        compile('
', 'binding value');
         $root.dsl.binding('foo . bar');
         expect($root.futureResult).toEqual('binding value');
       });
@@ -503,7 +503,7 @@ describe("angular.scenario.dsl", function() {
       });
 
       it('should return error if no binding matches', function() {
-        compile('some value');
+        compile('some value');
         $root.dsl.binding('foo.bar');
         expect($root.futureError).toMatch(/did not match/);
       });
@@ -513,12 +513,12 @@ describe("angular.scenario.dsl", function() {
       it('should prefix selector in $document.elements()', function() {
         var chain;
         doc.append(
-          '
' + - '
' + '
' + + '
' ); chain = $root.dsl.using('div#test2'); chain.input('test.input').enter('foo'); - var inputs = _jQuery('input[ng\\:model="test.input"]'); + var inputs = _jQuery('input[ng-model="test.input"]'); expect(inputs.first().val()).toEqual('something'); expect(inputs.last().val()).toEqual('foo'); }); @@ -537,10 +537,10 @@ describe("angular.scenario.dsl", function() { describe('Input', function() { it('should change value in text input', function() { - doc.append(''); + doc.append(''); var chain = $root.dsl.input('test.input'); chain.enter('foo'); - expect(_jQuery('input[ng\\:model="test.input"]').val()).toEqual('foo'); + expect(_jQuery('input[ng-model="test.input"]').val()).toEqual('foo'); }); it('should change value in text input in dash form', function() { @@ -557,16 +557,16 @@ describe("angular.scenario.dsl", function() { }); it('should toggle checkbox state', function() { - doc.append(''); - expect(_jQuery('input[ng\\:model="test.input"]'). + doc.append(''); + expect(_jQuery('input[ng-model="test.input"]'). prop('checked')).toBe(true); var chain = $root.dsl.input('test.input'); chain.check(); - expect(_jQuery('input[ng\\:model="test.input"]'). + expect(_jQuery('input[ng-model="test.input"]'). prop('checked')).toBe(false); $window.angular.reset(); chain.check(); - expect(_jQuery('input[ng\\:model="test.input"]'). + expect(_jQuery('input[ng-model="test.input"]'). prop('checked')).toBe(true); }); @@ -603,7 +603,7 @@ describe("angular.scenario.dsl", function() { describe('val', function() { it('should return value in text input', function() { - doc.append(''); + doc.append(''); $root.dsl.input('test.input').val(); expect($root.futureResult).toEqual("something"); }); @@ -613,10 +613,10 @@ describe("angular.scenario.dsl", function() { describe('Textarea', function() { it('should change value in textarea', function() { - doc.append(''); + doc.append(''); var chain = $root.dsl.input('test.textarea'); chain.enter('foo'); - expect(_jQuery('textarea[ng\\:model="test.textarea"]').val()).toEqual('foo'); + expect(_jQuery('textarea[ng-model="test.textarea"]').val()).toEqual('foo'); }); it('should return error if no textarea exists', function() { diff --git a/test/scenario/e2e/Runner-compiled.html b/test/scenario/e2e/Runner-compiled.html index c3a55f4d..530fef96 100644 --- a/test/scenario/e2e/Runner-compiled.html +++ b/test/scenario/e2e/Runner-compiled.html @@ -1,7 +1,7 @@ - + diff --git a/test/scenario/e2e/Runner.html b/test/scenario/e2e/Runner.html index 387973db..1191dc86 100644 --- a/test/scenario/e2e/Runner.html +++ b/test/scenario/e2e/Runner.html @@ -1,7 +1,7 @@ - + diff --git a/test/scenario/e2e/widgets.html b/test/scenario/e2e/widgets.html index 40ba0a3a..f986144e 100644 --- a/test/scenario/e2e/widgets.html +++ b/test/scenario/e2e/widgets.html @@ -1,10 +1,10 @@ - + - + @@ -15,34 +15,34 @@ - + - + - - + - + -- cgit v1.2.3
Description
basic - + text.basic={{text.basic}}
password text.password={{text.password}}
hidden text.hidden={{text.hidden}}
Input selection field
radio - Female
- Male + Female
+ Male
gender={{gender}}
checkbox - Tea
- Coffe + Tea
+ Coffe
checkbox={{checkbox}}
@@ -51,7 +51,7 @@
select - @@ -62,7 +62,7 @@
multiselect - @@ -72,24 +72,24 @@
Buttons
ng:change
ng:click
-
-
-
+
ng-change
ng-click
+ +
+
-
- action +
+ action
button={{button}} form={{form}}
Repeaters
ng:repeatng-repeat
    -
  • {{name}}
  • +
  • {{name}}