diff options
| author | Adam Abrons | 2010-03-15 17:02:54 -0700 |
|---|---|---|
| committer | Adam Abrons | 2010-03-15 17:02:54 -0700 |
| commit | 39c6c5975bedf6e1610f7328a088acda9ab3406a (patch) | |
| tree | c49a499733b7a3ec3547c64ff4d3ba5f9381dfa7 /scenario/datastore-scenarios.js | |
| parent | 79b743e52feb2c57ba0ae42d6d2742bc2189b22f (diff) | |
| download | angular.js-39c6c5975bedf6e1610f7328a088acda9ab3406a.tar.bz2 | |
get scenarios running again - open Runner.html in a browser to run them
Diffstat (limited to 'scenario/datastore-scenarios.js')
| -rw-r--r-- | scenario/datastore-scenarios.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/scenario/datastore-scenarios.js b/scenario/datastore-scenarios.js new file mode 100644 index 00000000..6038070b --- /dev/null +++ b/scenario/datastore-scenarios.js @@ -0,0 +1,19 @@ +angular.scenarioDef.datastore = { + $before:[ + {Given:"dataset", + dataset:{ + Book:[{$id:'moby', name:"Moby Dick"}, + {$id:'gadsby', name:'Great Gadsby'}] + } + }, + {Given:"browser", at:"datastore.html#book=moby"}, + ], + checkLoadBook:[ + {Then:"drainRequestQueue"}, + + {Then:"text", at:"{{book.$id}}", should_be:"moby"}, + {Then:"text", at:"li[$index=0] {{book.name}}", should_be:"Great Gahdsby"}, + {Then:"text", at:"li[$index=0] {{book.name}}", should_be:"Moby Dick"}, + + ] +}; |
