Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1020)

Unified Diff: appengine/swarming/ui/res/imp/common/pageable-data-demo.html

Issue 2419613002: Add basic swarming UI tests
Patch Set: Make sure symlink isn't followed for uploading Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « appengine/swarming/ui/res/imp/common/pageable-data.html ('k') | appengine/swarming/ui/res/js/alias.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/swarming/ui/res/imp/common/pageable-data-demo.html
diff --git a/appengine/swarming/ui/res/imp/common/pageable-data-demo.html b/appengine/swarming/ui/res/imp/common/pageable-data-demo.html
index 5a2fcca9df9d53f6c8b1d9dbcdaf2e3f81af2559..c20497b532fabe2c8f6460847446f50f57a84345 100644
--- a/appengine/swarming/ui/res/imp/common/pageable-data-demo.html
+++ b/appengine/swarming/ui/res/imp/common/pageable-data-demo.html
@@ -22,8 +22,13 @@
sinon.format = function(object) {return JSON.stringify(object);}
sinon.log = function(message) {console.log(message);};
var server = sinon.fakeServer.create();
- server.autoRespond = true;
- // server.autoRespondAfter = 1000;
+ if (!window.chai) {
+ // If chai is defined, we are unit testing, so we don't want the delay
+ // in the responses. If we aren't unit testing, we are in demo page
+ // mode and add in the delay for realism.
+ server.autoRespond = true;
+ server.autoRespondAfter = 1000;
+ }
var data = [];
for (var i = 0; i < 27; i++) {
@@ -85,7 +90,6 @@
type: Function,
value: function() {
return function(json) {
- console.log("hello parse");
return json.data;
};
},
« no previous file with comments | « appengine/swarming/ui/res/imp/common/pageable-data.html ('k') | appengine/swarming/ui/res/js/alias.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698