OLD | NEW |
1 <!-- | 1 <!-- |
2 Copyright 2014 The Chromium Authors. All rights reserved. | 2 Copyright 2014 The Chromium Authors. All rights reserved. |
3 Use of this source code is governed by a BSD-style license that can be | 3 Use of this source code is governed by a BSD-style license that can be |
4 found in the LICENSE file. | 4 found in the LICENSE file. |
5 --> | 5 --> |
6 | 6 |
7 <link rel="import" href="ct-test-list.html"> | 7 <link rel="import" href="ct-test-list.html"> |
8 | 8 |
9 <script> | 9 <script> |
10 (function () { | 10 (function () { |
11 | 11 |
12 var kExampleTests = [ | 12 var kExampleFailures = [ |
13 { | 13 new CTFailure('foo_step', "plugins/gesture-events-scrolled.html", |
14 "testName": "plugins/gesture-events-scrolled.html", | 14 { |
15 "step": "foo_step", | 15 "WebKit Mac10.6 (dbg)": { |
16 "resultNodesByBuilder": { | 16 "actual": "IMAGE", |
17 "WebKit Mac10.6 (dbg)": { | 17 }, |
18 "actual": "IMAGE", | 18 }, 177164, 177165), |
19 }, | 19 new CTFailure('foo_step', "plugins/transformed-events.html", |
20 }, | 20 { |
21 "oldestFailingRevision": 177164, | 21 "WebKit Mac10.6 (dbg)": { |
22 "newestPassingRevision": 177165, | 22 "actual": "IMAGE", |
23 }, | 23 }, |
24 { | 24 }, 177164, 177165 |
25 "testName": "plugins/transformed-events.html", | 25 ), |
26 "step": "foo_step", | 26 new CTFailure('foo_step', "plugins/gesture-events.html", |
27 "resultNodesByBuilder": { | 27 { |
28 "WebKit Mac10.6 (dbg)": { | 28 "WebKit Mac10.6 (dbg)": { |
29 "actual": "IMAGE", | 29 "actual": "IMAGE", |
30 }, | 30 }, |
31 }, | 31 }, 177164, 177165 |
32 "oldestFailingRevision": 177164, | 32 ) |
33 "newestPassingRevision": 177165, | |
34 }, | |
35 { | |
36 "testName": "plugins/gesture-events.html", | |
37 "step": "foo_step", | |
38 "resultNodesByBuilder": { | |
39 "WebKit Mac10.6 (dbg)": { | |
40 "actual": "IMAGE", | |
41 }, | |
42 }, | |
43 "oldestFailingRevision": 177164, | |
44 "newestPassingRevision": 177165, | |
45 }, | |
46 ]; | 33 ]; |
47 | 34 |
48 module("ct-test-list"); | 35 module("ct-test-list"); |
49 | 36 |
50 asyncTest("basic", 4, function() { | 37 asyncTest("basic", 4, function() { |
51 var list = document.createElement('ct-test-list'); | 38 var list = document.createElement('ct-test-list'); |
52 | 39 |
53 list.tests = kExampleTests; | 40 list.tests = kExampleFailures; |
54 list.tree = 'blink'; | 41 list.tree = 'blink'; |
55 | 42 |
56 Platform.endOfMicrotask(function() { | 43 Platform.endOfMicrotask(function() { |
57 var tests = list.shadowRoot.querySelectorAll('a'); | 44 var tests = list.shadowRoot.querySelectorAll('a'); |
58 equal(tests.length, 3); | 45 equal(tests.length, 3); |
59 equal(tests[0].href, 'http://test-results.appspot.com/dashboards/flakiness_d
ashboard.html#group=@ToT%20Blink&tests=plugins%2Fgesture-events-scrolled.html&te
stType=foo_step'); | 46 equal(tests[0].href, 'http://test-results.appspot.com/dashboards/flakiness_d
ashboard.html#group=@ToT%20Blink&tests=plugins%2Fgesture-events-scrolled.html&te
stType=foo_step'); |
60 equal(tests[1].href, 'http://test-results.appspot.com/dashboards/flakiness_d
ashboard.html#group=@ToT%20Blink&tests=plugins%2Ftransformed-events.html&testTyp
e=foo_step'); | 47 equal(tests[1].href, 'http://test-results.appspot.com/dashboards/flakiness_d
ashboard.html#group=@ToT%20Blink&tests=plugins%2Ftransformed-events.html&testTyp
e=foo_step'); |
61 equal(tests[2].href, 'http://test-results.appspot.com/dashboards/flakiness_d
ashboard.html#group=@ToT%20Blink&tests=plugins%2Fgesture-events.html&testType=fo
o_step'); | 48 equal(tests[2].href, 'http://test-results.appspot.com/dashboards/flakiness_d
ashboard.html#group=@ToT%20Blink&tests=plugins%2Fgesture-events.html&testType=fo
o_step'); |
62 | 49 |
63 start(); | 50 start(); |
64 }); | 51 }); |
65 }); | 52 }); |
66 | 53 |
67 })() | 54 })() |
68 </script> | 55 </script> |
OLD | NEW |