2010-03-16 00:02:54 +00:00
|
|
|
angular.scenarioDef.datastore = {
|
|
|
|
|
$before:[
|
2011-05-19 15:38:23 +00:00
|
|
|
{Given:"dataset",
|
2010-03-16 00:02:54 +00:00
|
|
|
dataset:{
|
2011-05-19 15:38:23 +00:00
|
|
|
Book:[{$id:'moby', name:"Moby Dick"},
|
2010-03-16 00:02:54 +00:00
|
|
|
{$id:'gadsby', name:'Great Gadsby'}]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{Given:"browser", at:"datastore.html#book=moby"},
|
|
|
|
|
],
|
|
|
|
|
checkLoadBook:[
|
|
|
|
|
{Then:"drainRequestQueue"},
|
2011-05-19 15:38:23 +00:00
|
|
|
|
2010-03-16 00:02:54 +00:00
|
|
|
{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"},
|
2011-05-19 15:38:23 +00:00
|
|
|
|
2010-03-16 00:02:54 +00:00
|
|
|
]
|
|
|
|
|
};
|