Index: Tools/GardeningServer/ui/ct-commit-tests.html |
diff --git a/Tools/GardeningServer/ui/ct-commit-tests.html b/Tools/GardeningServer/ui/ct-commit-tests.html |
index 86074e7da69d33ffaf2e30a34c8d8c5163cca12f..e5075e22f6dd959351acd3da2d1df823bbb88b76 100644 |
--- a/Tools/GardeningServer/ui/ct-commit-tests.html |
+++ b/Tools/GardeningServer/ui/ct-commit-tests.html |
@@ -6,23 +6,24 @@ found in the LICENSE file. |
<link rel="import" href="ct-commit.html"> |
-<link rel="import" href="model/ct-commit-mock.html"> |
+<link rel="import" href="../model/ct-commit-mock.html"> |
<script> |
(function () { |
module("ct-commit"); |
-asyncTest("basic", 2, function() { |
+asyncTest("basic", 3, function() { |
var grouper = document.createElement('ct-commit'); |
grouper.data = new CTCommitMock(); |
- Platform.endOfMicrotask(function() { |
+ requestAnimationFrame(function() { |
var html = grouper.shadowRoot.innerHTML; |
- equal(html.indexOf('mkwst') != -1, true) |
- equal(html.indexOf('behavior for these types') != -1, true) |
+ equal(html.indexOf('mkwst') != -1, true); |
+ equal(html.indexOf('behavior for these types') != -1, true); |
+ equal(grouper.shadowRoot.querySelector('a').href, grouper.data.url); |
start(); |
}); |