| 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 90d6c3bfe289624079244bf49c55d2c6963a016d..f0d0a7443f5286da911015080cb21db246d0c651 100644
|
| --- a/Tools/GardeningServer/ui/ct-test-list-tests.html
|
| +++ b/Tools/GardeningServer/ui/ct-test-list-tests.html
|
| @@ -4,6 +4,7 @@ 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">
|
|
|
| <link rel="import" href="../model/ct-failure.html">
|
| @@ -11,27 +12,20 @@ found in the LICENSE file.
|
| <script>
|
| (function () {
|
|
|
| -var kExampleFailures = [
|
| - new CTFailure('foo_step', "plugins/gesture-events-scrolled.html",
|
| - {
|
| - "WebKit Mac10.6 (dbg)": {
|
| - "actual": "IMAGE",
|
| - },
|
| - }, 177164, 177165),
|
| - new CTFailure('foo_step', "plugins/transformed-events.html",
|
| - {
|
| - "WebKit Mac10.6 (dbg)": {
|
| - "actual": "IMAGE",
|
| - },
|
| - }, 177164, 177165
|
| - ),
|
| - new CTFailure('foo_step', "plugins/gesture-events.html",
|
| - {
|
| - "WebKit Mac10.6 (dbg)": {
|
| - "actual": "IMAGE",
|
| - },
|
| - }, 177164, 177165
|
| - )
|
| +var kExampleTests = [
|
| + 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");
|
| @@ -42,7 +36,7 @@ asyncTest("basic", 4, function() {
|
| list.tests = kExampleFailures;
|
| list.tree = 'blink';
|
|
|
| - Platform.endOfMicrotask(function() {
|
| + setTimeout(function() {
|
| var tests = list.shadowRoot.querySelectorAll('a');
|
| equal(tests.length, 3);
|
| equal(tests[0].href, 'http://test-results.appspot.com/dashboards/flakiness_dashboard.html#group=@ToT%20Blink&tests=plugins%2Fgesture-events-scrolled.html&testType=foo_step');
|
| @@ -53,5 +47,37 @@ asyncTest("basic", 4, function() {
|
| });
|
| });
|
|
|
| +asyncTest("groupingChromium", 2, function() {
|
| + var list = document.createElement('ct-test-list');
|
| +
|
| + list.tests = kExampleTestsChromium;
|
| + list.tree = 'chromium';
|
| +
|
| + setTimeout(function() {
|
| + 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';
|
| +
|
| + setTimeout(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>
|
|
|