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

Unified Diff: Tools/GardeningServer/scripts/treestatus_unittests.js

Issue 401163002: Fix exceptions when running the tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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
Index: Tools/GardeningServer/scripts/treestatus_unittests.js
diff --git a/Tools/GardeningServer/scripts/treestatus_unittests.js b/Tools/GardeningServer/scripts/treestatus_unittests.js
index 5c4a7d9824fa1eed819f3761c750e639cc6759be..6a8ac6b643c52bf5a8b6c192be2a33d410b3b410 100644
--- a/Tools/GardeningServer/scripts/treestatus_unittests.js
+++ b/Tools/GardeningServer/scripts/treestatus_unittests.js
@@ -49,7 +49,7 @@ test('urlByName', 3, function() {
equal(treestatus.urlByName('foo'), null);
});
-asyncTest('fetchTreeStatus', 4, function() {
+asyncTest('fetchTreeStatus', 3, function() {
var simulator = new NetworkSimulator();
simulator.json = function(url)
@@ -67,13 +67,11 @@ asyncTest('fetchTreeStatus', 4, function() {
equal(span.textContent, 'OPEN');
span = document.createElement('span');
- simulator.runTest(function() {
- treestatus.fetchTreeStatus('http://closedtree', span)
- .then(function() {
- equal(span.textContent, 'Tree is closed by ojan@chromium.org');
- start();
- });
- });
+ treestatus.fetchTreeStatus('http://closedtree', span)
+ .then(function() {
+ equal(span.textContent, 'Tree is closed by ojan@chromium.org');
+ start();
+ });
});
});
});

Powered by Google App Engine
This is Rietveld 408576698