aboutsummaryrefslogtreecommitdiffstats
path: root/src/Angular.js
diff options
context:
space:
mode:
authorIgor Minar2011-03-03 09:52:35 -0800
committerIgor Minar2011-03-03 13:50:12 -0800
commit5bf7ff5a3e7498cb43f1e18a6da32633162ff787 (patch)
tree58f94aea30ac0523fac8601ad93d97bf4e528aad /src/Angular.js
parenta01aa7055c94ad510b580f45222a48a8b9b24105 (diff)
downloadangular.js-5bf7ff5a3e7498cb43f1e18a6da32633162ff787.tar.bz2
fixing broken e2e tests
Diffstat (limited to 'src/Angular.js')
-rw-r--r--src/Angular.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/Angular.js b/src/Angular.js
index e47931ba..0800bca4 100644
--- a/src/Angular.js
+++ b/src/Angular.js
@@ -562,14 +562,14 @@ function isLeafNode (node) {
* </doc:source>
* <doc:scenario>
it('should print that initialy the form object is NOT equal to master', function() {
- expect(element('.doc-example input[name=master.salutation]').val()).toBe('Hello');
- expect(element('.doc-example input[name=master.name]').val()).toBe('world');
- expect(element('.doc-example span').css('display')).toBe('inline');
+ expect(element('.doc-example-live input[name=master.salutation]').val()).toBe('Hello');
+ expect(element('.doc-example-live input[name=master.name]').val()).toBe('world');
+ expect(element('.doc-example-live span').css('display')).toBe('inline');
});
it('should make form and master equal when the copy button is clicked', function() {
- element('.doc-example button').click();
- expect(element('.doc-example span').css('display')).toBe('none');
+ element('.doc-example-live button').click();
+ expect(element('.doc-example-live span').css('display')).toBe('none');
});
* </doc:scenario>
* </doc:example>
@@ -643,14 +643,14 @@ function copy(source, destination){
* </doc:source>
* <doc:scenario>
it('should print that initialy greeting is equal to the hardcoded value object', function() {
- expect(element('.doc-example input[name=greeting.salutation]').val()).toBe('Hello');
- expect(element('.doc-example input[name=greeting.name]').val()).toBe('world');
- expect(element('.doc-example span').css('display')).toBe('none');
+ expect(element('.doc-example-live input[name=greeting.salutation]').val()).toBe('Hello');
+ expect(element('.doc-example-live input[name=greeting.name]').val()).toBe('world');
+ expect(element('.doc-example-live span').css('display')).toBe('none');
});
it('should say that the objects are not equal when the form is modified', function() {
input('greeting.name').enter('kitty');
- expect(element('.doc-example span').css('display')).toBe('inline');
+ expect(element('.doc-example-live span').css('display')).toBe('inline');
});
* </doc:scenario>
* </doc:example>