| 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 kExampleTests = [ |
| 13 "plugins/gesture-events-scrolled.html", | 13 { |
| 14 "plugins/transformed-events.html", | 14 "testName": "plugins/gesture-events-scrolled.html", |
| 15 "plugins/gesture-events.html", | 15 "step": "foo_step", |
| 16 "resultNodesByBuilder": { |
| 17 "WebKit Mac10.6 (dbg)": { |
| 18 "actual": "IMAGE", |
| 19 }, |
| 20 }, |
| 21 "oldestFailingRevision": 177164, |
| 22 "newestPassingRevision": 177165, |
| 23 }, |
| 24 { |
| 25 "testName": "plugins/transformed-events.html", |
| 26 "step": "foo_step", |
| 27 "resultNodesByBuilder": { |
| 28 "WebKit Mac10.6 (dbg)": { |
| 29 "actual": "IMAGE", |
| 30 }, |
| 31 }, |
| 32 "oldestFailingRevision": 177164, |
| 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 }, |
| 16 ]; | 46 ]; |
| 17 | 47 |
| 18 module("ct-test-list"); | 48 module("ct-test-list"); |
| 19 | 49 |
| 20 asyncTest("basic", 4, function() { | 50 asyncTest("basic", 4, function() { |
| 21 var list = document.createElement('ct-test-list'); | 51 var list = document.createElement('ct-test-list'); |
| 22 | 52 |
| 23 list.tests = kExampleTests; | 53 list.tests = kExampleTests; |
| 24 | 54 |
| 25 Platform.endOfMicrotask(function() { | 55 Platform.endOfMicrotask(function() { |
| 26 var tests = list.shadowRoot.querySelectorAll('a'); | 56 var tests = list.shadowRoot.querySelectorAll('a'); |
| 27 equal(tests.length, 3); | 57 equal(tests.length, 3); |
| 28 equal(tests[0].href, 'http://test-results.appspot.com/dashboards/flakiness_d
ashboard.html#tests=plugins%2Fgesture-events-scrolled.html'); | 58 equal(tests[0].href, 'http://test-results.appspot.com/dashboards/flakiness_d
ashboard.html#tests=plugins%2Fgesture-events-scrolled.html&testType=foo_step'); |
| 29 equal(tests[1].href, 'http://test-results.appspot.com/dashboards/flakiness_d
ashboard.html#tests=plugins%2Ftransformed-events.html'); | 59 equal(tests[1].href, 'http://test-results.appspot.com/dashboards/flakiness_d
ashboard.html#tests=plugins%2Ftransformed-events.html&testType=foo_step'); |
| 30 equal(tests[2].href, 'http://test-results.appspot.com/dashboards/flakiness_d
ashboard.html#tests=plugins%2Fgesture-events.html'); | 60 equal(tests[2].href, 'http://test-results.appspot.com/dashboards/flakiness_d
ashboard.html#tests=plugins%2Fgesture-events.html&testType=foo_step'); |
| 31 | 61 |
| 32 start(); | 62 start(); |
| 33 }); | 63 }); |
| 34 }); | 64 }); |
| 35 | 65 |
| 36 })() | 66 })() |
| 37 </script> | 67 </script> |
| OLD | NEW |