Chromium Code Reviews| 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 () { |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 38 "resultNodesByBuilder": { | 38 "resultNodesByBuilder": { |
| 39 "WebKit Mac10.6 (dbg)": { | 39 "WebKit Mac10.6 (dbg)": { |
| 40 "actual": "IMAGE", | 40 "actual": "IMAGE", |
| 41 }, | 41 }, |
| 42 }, | 42 }, |
| 43 "oldestFailingRevision": 177164, | 43 "oldestFailingRevision": 177164, |
| 44 "newestPassingRevision": 177165, | 44 "newestPassingRevision": 177165, |
| 45 }, | 45 }, |
| 46 ]; | 46 ]; |
| 47 | 47 |
| 48 var kExampleTestsChromium = [ | |
| 49 { | |
| 50 "testName": "SomeTest.SubTest1", | |
| 51 "step": "browser_tests", | |
| 52 "oldestFailingRevision": 177164, | |
| 53 "newestPassingRevision": 177165, | |
| 54 }, | |
| 55 { | |
| 56 "testName": "SomeTest.SubTest2", | |
| 57 "step": "browser_tests", | |
| 58 "oldestFailingRevision": 177164, | |
| 59 "newestPassingRevision": 177165, | |
| 60 }, | |
| 61 ]; | |
| 62 | |
| 48 module("ct-test-list"); | 63 module("ct-test-list"); |
| 49 | 64 |
| 50 asyncTest("basic", 4, function() { | 65 asyncTest("basic", 4, function() { |
| 51 var list = document.createElement('ct-test-list'); | 66 var list = document.createElement('ct-test-list'); |
| 52 | 67 |
| 53 list.tests = kExampleTests; | 68 list.tests = kExampleTests; |
| 54 list.tree = 'blink'; | 69 list.tree = 'blink'; |
| 55 | 70 |
| 56 Platform.endOfMicrotask(function() { | 71 Platform.endOfMicrotask(function() { |
| 57 var tests = list.shadowRoot.querySelectorAll('a'); | 72 var tests = list.shadowRoot.querySelectorAll('a'); |
| 58 equal(tests.length, 3); | 73 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'); | 74 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'); | 75 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'); | 76 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 | 77 |
| 63 start(); | 78 start(); |
| 64 }); | 79 }); |
| 65 }); | 80 }); |
| 66 | 81 |
| 82 asyncTest("grouping", 2, function() { | |
|
ojan
2014/08/11 02:18:55
Please also have a test of layout tests.
jochen (gone - plz use gerrit)
2014/08/11 12:59:36
done
| |
| 83 var list = document.createElement('ct-test-list'); | |
| 84 | |
| 85 list.tests = kExampleTestsChromium; | |
| 86 list.tree = 'chromium'; | |
| 87 | |
| 88 Platform.endOfMicrotask(function() { | |
| 89 var tests = list.shadowRoot.querySelectorAll('a'); | |
| 90 equal(tests.length, 0); | |
| 91 var icons = list.shadowRoot.querySelectorAll('paper-icon-button'); | |
| 92 equal(icons.length, 1); | |
| 93 | |
| 94 start(); | |
| 95 }); | |
| 96 }); | |
| 97 | |
| 67 })() | 98 })() |
| 68 </script> | 99 </script> |
| OLD | NEW |