Index: Tools/GardeningServer/ui/ct-test-list-tests.html |
diff --git a/Tools/GardeningServer/ui/ct-test-list-tests.html b/Tools/GardeningServer/ui/ct-test-list-tests.html |
index 95ae6e5f1a83c3c5b14a937577645b28a97491bb..b5706bd26e8e062b83b3bc21cb2c9c9aa08791d3 100644 |
--- a/Tools/GardeningServer/ui/ct-test-list-tests.html |
+++ b/Tools/GardeningServer/ui/ct-test-list-tests.html |
@@ -4,45 +4,26 @@ Use of this source code is governed by a BSD-style license that can be |
found in the LICENSE file. |
--> |
+<link rel="import" href="../model/ct-failure.html"> |
<link rel="import" href="ct-test-list.html"> |
<script> |
(function () { |
var kExampleTests = [ |
-{ |
- "testName": "plugins/gesture-events-scrolled.html", |
- "step": "foo_step", |
- "resultNodesByBuilder": { |
- "WebKit Mac10.6 (dbg)": { |
- "actual": "IMAGE", |
- }, |
- }, |
- "oldestFailingRevision": 177164, |
- "newestPassingRevision": 177165, |
-}, |
-{ |
- "testName": "plugins/transformed-events.html", |
- "step": "foo_step", |
- "resultNodesByBuilder": { |
- "WebKit Mac10.6 (dbg)": { |
- "actual": "IMAGE", |
- }, |
- }, |
- "oldestFailingRevision": 177164, |
- "newestPassingRevision": 177165, |
-}, |
-{ |
- "testName": "plugins/gesture-events.html", |
- "step": "foo_step", |
- "resultNodesByBuilder": { |
- "WebKit Mac10.6 (dbg)": { |
- "actual": "IMAGE", |
- }, |
- }, |
- "oldestFailingRevision": 177164, |
- "newestPassingRevision": 177165, |
-}, |
+ new CTFailure("foo_step", "plugins/gesture-events-scrolled.html", {}, 177164, 177165); |
+ new CTFailure("foo_step", "plugins/transformed-events.html", {}, 177164, 177165); |
+ new CTFailure("foo_step", "plugins/gesture-events.html", {}, 177164, 177165); |
+]; |
+ |
+var kExampleTestsChromium = [ |
+ new CTFailure("browser_tests", "SomeTest.SubTest1", {}, 177164, 177165); |
+ new CTFailure("browser_tests", "SomeTest.SubTest2", {}, 177164, 177165); |
+]; |
+ |
+var kExampleTestsBlink = [ |
+ new CTFailure("webkit_tests", "fast/events/foo.html", {}, 177164, 177165); |
+ new CTFailure("webkit_tests", "fast/events/bar.html", {}, 177164, 177165); |
]; |
module("ct-test-list"); |
@@ -64,5 +45,37 @@ asyncTest("basic", 4, function() { |
}); |
}); |
+asyncTest("groupingChromium", 2, function() { |
+ var list = document.createElement('ct-test-list'); |
+ |
+ list.tests = kExampleTestsChromium; |
+ list.tree = 'chromium'; |
+ |
+ Platform.endOfMicrotask(function() { |
ojan
2014/08/11 19:41:05
endOfMicrotask is a weird broken API. It basically
jochen (gone - plz use gerrit)
2014/08/12 11:55:51
done
|
+ var tests = list.shadowRoot.querySelectorAll('a'); |
+ equal(tests.length, 0); |
+ var icons = list.shadowRoot.querySelectorAll('paper-icon-button'); |
+ equal(icons.length, 1); |
+ |
+ start(); |
+ }); |
+}); |
+ |
+asyncTest("groupingBlink", 2, function() { |
+ var list = document.createElement('ct-test-list'); |
+ |
+ list.tests = kExampleTestsBlink; |
+ list.tree = 'blink'; |
+ |
+ Platform.endOfMicrotask(function() { |
+ var tests = list.shadowRoot.querySelectorAll('a'); |
+ equal(tests.length, 0); |
+ var icons = list.shadowRoot.querySelectorAll('paper-icon-button'); |
+ equal(icons.length, 1); |
+ |
+ start(); |
+ }); |
+}); |
+ |
})() |
</script> |