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

Unified Diff: Tools/GardeningServer/ui/ct-tree-status-tests.html

Issue 443243002: Move treestatus.js to a model class. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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/ui/ct-tree-status-tests.html
diff --git a/Tools/GardeningServer/ui/ct-tree-status-tests.html b/Tools/GardeningServer/ui/ct-tree-status-tests.html
index f14e34a99b590f9d0f06d93606a065d5c23e0a68..56f99a7f6043ca8e0c0895100fb0c87d3ce9c8c2 100644
--- a/Tools/GardeningServer/ui/ct-tree-status-tests.html
+++ b/Tools/GardeningServer/ui/ct-tree-status-tests.html
@@ -48,8 +48,8 @@ asyncTest("basic", 10, function() {
closedtree.project = "closed-tree-project";
simulator.runTest(function() {
- var urlByName = treestatus.urlByName;
- treestatus.urlByName = function(name) {
+ var urlByName = TreeStatus.prototype.urlByName;
+ TreeStatus.prototype.urlByName = function(name) {
return "http://" + name + "-status.appspot.com/";
}
Promise.all([
@@ -65,7 +65,9 @@ asyncTest("basic", 10, function() {
equal(closedtree.message,
"Tree is closed for maintenance by username@test.org");
equal(closedtree.status, "closed");
- equal(closedtree.shadowRoot.querySelector('a').href, treestatus.urlByName('closed-tree-project'));
+
+ var treeStatus = new TreeStatus();
+ equal(closedtree.shadowRoot.querySelector('a').href, treeStatus.urlByName('closed-tree-project'));
})
]).then(function() {
requestAnimationFrame(function() {
@@ -73,7 +75,7 @@ asyncTest("basic", 10, function() {
ok(throttledtree.shadowRoot.textContent.has("throttled-tree-project"));
ok(closedtree.shadowRoot.textContent.has("closed-tree-project"));
start();
- treestatus.urlByName = urlByName;
+ TreeStatus.prototype.urlByName = urlByName;
});
});
});
« Tools/GardeningServer/ui/ct-tree-status.html ('K') | « Tools/GardeningServer/ui/ct-tree-status.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698