Skip to content

Commit

Permalink
issue YahooArchive#1306: update tests to verify the view path works f…
Browse files Browse the repository at this point in the history
…or both ac.done and ac.partial.render
  • Loading branch information
Lichun Zhan committed Jan 24, 2014
1 parent 0cfd9b5 commit 283d265
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ YUI.add('ActionContextMojit', function(Y, NAME) {
}else if(test=="done9"){
ac.done({ foo: null }, {view: {name: "mytemplate1"}});
}else if(test=="done10"){
ac.done({ foo: [ 1, 2, null, 4 ]}, {view: {name: "mytemplate1"}} );
ac.done({ foo: [ 1, 2, null, 4 ]}, {view: {name: "testdir/mytemplate1"}} );
}else if(test=="flush8"){
ac.flush({data:"Hello, world!--from flush"}, {view: {name: "mytemplate"}});
ac.done();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ YUI.add('PartialMojit', function(Y, NAME) {
ac.done(mymarkup);
});*/
//ac.done(data);
ac.partial.render(data, "sub", function(error, mymarkup){
ac.partial.render(data, "testdir/sub", function(error, mymarkup){
Y.log("HereController....."+mymarkup);
ac.done(mymarkup);
})
Expand Down

0 comments on commit 283d265

Please sign in to comment.