Skip to content

Commit

Permalink
Fix perf suite broken by descriptor change
Browse files Browse the repository at this point in the history
  • Loading branch information
chenglou committed Apr 25, 2014
1 parent 28820e0 commit 5158a02
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions perf/tests/todolist-add.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ exports.defer = true;
exports.setup = function(){
/*global*/_rootNode = document.createElement('div');
document.body.appendChild(_rootNode);
/*global*/_app = todolist.App({ fakeDataCount: 333 });
React.renderComponent(_app, _rootNode);
var appDescriptor = todolist.App({ fakeDataCount: 333 });
/*global*/_app = React.renderComponent(appDescriptor, _rootNode);
};
exports.fn = function(deferred){
var liCount = document.getElementsByTagName('li').length;
Expand Down
4 changes: 2 additions & 2 deletions perf/tests/todolist-do-stuff.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ exports.defer = true;
exports.setup = function(){
/*global*/_rootNode = document.createElement('div');
document.body.appendChild(_rootNode);
/*global*/_app = todolist.App({ fakeDataCount: 333 });
React.renderComponent(_app, _rootNode);
var appDescriptor = todolist.App({ fakeDataCount: 333 });
/*global*/_app = React.renderComponent(appDescriptor, _rootNode);
};

exports.fn = function(deferred){
Expand Down
4 changes: 2 additions & 2 deletions perf/tests/todolist-edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ exports.defer = true;
exports.setup = function(){
/*global*/_rootNode = document.createElement('div');
document.body.appendChild(_rootNode);
/*global*/_app = todolist.App({ fakeDataCount: 333 });
React.renderComponent(_app, _rootNode);
var appDescriptor = todolist.App({ fakeDataCount: 333 });
/*global*/_app = React.renderComponent(appDescriptor, _rootNode);
/*global*/_todo1 = _app.addItem("Howdy 1!");
/*global*/_todo2 = _app.addItem("Howdy 2!");
/*global*/_todo3 = _app.addItem("Howdy 3!");
Expand Down

0 comments on commit 5158a02

Please sign in to comment.