| <!-- |
| Copyright 2014 The Chromium Authors. All rights reserved. |
| Use of this source code is governed by a BSD-style license that can be |
| found in the LICENSE file. |
| --> |
| |
| <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, |
| }, |
| ]; |
| |
| module("ct-test-list"); |
| |
| asyncTest("basic", 4, function() { |
| var list = document.createElement('ct-test-list'); |
| |
| list.tests = kExampleTests; |
| list.tree = 'blink'; |
| |
| Platform.endOfMicrotask(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'); |
| equal(tests[1].href, 'http://test-results.appspot.com/dashboards/flakiness_dashboard.html#group=@ToT%20Blink&tests=plugins%2Ftransformed-events.html&testType=foo_step'); |
| equal(tests[2].href, 'http://test-results.appspot.com/dashboards/flakiness_dashboard.html#group=@ToT%20Blink&tests=plugins%2Fgesture-events.html&testType=foo_step'); |
| |
| start(); |
| }); |
| }); |
| |
| })() |
| </script> |