Add * XPath unit test

This commit is contained in:
bootstraponline
2013-03-23 13:04:08 -04:00
parent ec21895d56
commit dbbd559bb0
2 changed files with 5 additions and 0 deletions

1
.gitignore vendored
View File

@@ -1,3 +1,4 @@
*.swp
.DS_Store
npm*.log
node_modules

View File

@@ -37,6 +37,10 @@ describe("XPath lookups", function() {
attr: 'label', constraint: 'hi', substr: true}
, "//button[contains(@label, what's up dog)]": {
attr: 'label', constraint: "what's up dog", substr: true}
, "//*[contains(@text, 'agree')]": {
attr: 'text', constraint: 'agree', substr: true}
, "//*[@text='agree']": {
attr: 'text', constraint: 'agree', substr: false}
};
var notOks = [
, "//button123"