mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Fix perf suite broken by descriptor change
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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){
|
||||
|
||||
@@ -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!");
|
||||
|
||||
Reference in New Issue
Block a user