OLD | NEW |
(Empty) | |
| 1 <!-- |
| 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 |
| 4 found in the LICENSE file. |
| 5 --> |
| 6 |
| 7 <link rel="import" href="ct-test-list.html"> |
| 8 |
| 9 <script> |
| 10 (function () { |
| 11 |
| 12 var kExampleTests = [ |
| 13 "plugins/gesture-events-scrolled.html", |
| 14 "plugins/transformed-events.html", |
| 15 "plugins/gesture-events.html", |
| 16 ]; |
| 17 |
| 18 module("ct-test-list"); |
| 19 |
| 20 asyncTest("basic", 4, function() { |
| 21 var list = document.createElement('ct-test-list'); |
| 22 |
| 23 list.tests = kExampleTests; |
| 24 |
| 25 Platform.endOfMicrotask(function() { |
| 26 var tests = list.shadowRoot.querySelectorAll('a'); |
| 27 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'); |
| 29 equal(tests[1].href, 'http://test-results.appspot.com/dashboards/flakiness_d
ashboard.html#tests=plugins%2Ftransformed-events.html'); |
| 30 equal(tests[2].href, 'http://test-results.appspot.com/dashboards/flakiness_d
ashboard.html#tests=plugins%2Fgesture-events.html'); |
| 31 |
| 32 start(); |
| 33 }); |
| 34 }); |
| 35 |
| 36 })() |
| 37 </script> |
OLD | NEW |