| 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-results-panel.html"> | 7 <link rel="import" href="ct-results-panel.html"> |
| 8 | 8 |
| 9 <script> | 9 <script> |
| 10 (function () { | 10 (function () { |
| 11 | 11 |
| 12 var kExampleFailures = [{ | 12 var kExampleFailures = [ |
| 13 "testName": "plugins/gesture-events-scrolled.html", | 13 new CTFailure("testName", "plugins/gesture-events-scrolled.html", |
| 14 "resultNodesByBuilder": { | 14 { |
| 15 "WebKit Win7 (dbg)": { | 15 "WebKit Win7 (dbg)": { |
| 16 "expected": "PASS", | 16 "expected": "PASS", |
| 17 "is_unexpected": true, | 17 "is_unexpected": true, |
| 18 "actual": "CRASH", | 18 "actual": "CRASH", |
| 19 "time": 0.9 | 19 "time": 0.9 |
| 20 }, | 20 }, |
| 21 "WebKit Mac10.6 (dbg)": { | 21 "WebKit Mac10.6 (dbg)": { |
| 22 "expected": "PASS", | 22 "expected": "PASS", |
| 23 "is_unexpected": true, | 23 "is_unexpected": true, |
| 24 "actual": "CRASH", | 24 "actual": "CRASH", |
| 25 "has_stderr": true, | 25 "has_stderr": true, |
| 26 "time": 1.8 | 26 "time": 1.8 |
| 27 }, | 27 }, |
| 28 "WebKit Mac10.7 (dbg)": { | 28 "WebKit Mac10.7 (dbg)": { |
| 29 "expected": "PASS", | 29 "expected": "PASS", |
| 30 "is_unexpected": true, | 30 "is_unexpected": true, |
| 31 "actual": "CRASH", | 31 "actual": "CRASH", |
| 32 "has_stderr": true, | 32 "has_stderr": true, |
| 33 "time": 3.2 | 33 "time": 3.2 |
| 34 } | 34 } |
| 35 }, | 35 }, |
| 36 "oldestFailingRevision": 177164, | 36 177164, 177165 |
| 37 "newestPassingRevision": 177165 | 37 ), |
| 38 }, { | 38 new CTFailure("testName", "plugins/transformed-events.html", |
| 39 "testName": "plugins/transformed-events.html", | 39 { |
| 40 "resultNodesByBuilder": { | 40 "WebKit Win7 (dbg)": { |
| 41 "WebKit Win7 (dbg)": { | 41 "expected": "PASS", |
| 42 "expected": "PASS", | 42 "is_unexpected": true, |
| 43 "is_unexpected": true, | 43 "actual": "CRASH", |
| 44 "actual": "CRASH", | 44 "time": 0.6 |
| 45 "time": 0.6 | 45 }, |
| 46 }, | 46 "WebKit Mac10.6 (dbg)": { |
| 47 "WebKit Mac10.6 (dbg)": { | 47 "expected": "PASS", |
| 48 "expected": "PASS", | 48 "is_unexpected": true, |
| 49 "is_unexpected": true, | 49 "actual": "CRASH", |
| 50 "actual": "CRASH", | 50 "has_stderr": true, |
| 51 "has_stderr": true, | 51 "time": 1.4 |
| 52 "time": 1.4 | 52 }, |
| 53 }, | 53 "WebKit Mac10.7 (dbg)": { |
| 54 "WebKit Mac10.7 (dbg)": { | 54 "expected": "PASS", |
| 55 "expected": "PASS", | 55 "is_unexpected": true, |
| 56 "is_unexpected": true, | 56 "actual": "CRASH", |
| 57 "actual": "CRASH", | 57 "has_stderr": true, |
| 58 "has_stderr": true, | 58 "time": 3 |
| 59 "time": 3 | 59 } |
| 60 } | |
| 61 }, | 60 }, |
| 62 "oldestFailingRevision": 177164, | 61 177164, 177165 |
| 63 "newestPassingRevision": 177165 | 62 ), |
| 64 }, { | 63 new CTFailure("testName", "plugins/gesture-events.html", |
| 65 "testName": "plugins/gesture-events.html", | 64 { |
| 66 "resultNodesByBuilder": { | 65 "WebKit Win7 (dbg)": { |
| 67 "WebKit Win7 (dbg)": { | 66 "expected": "PASS", |
| 68 "expected": "PASS", | 67 "is_unexpected": true, |
| 69 "is_unexpected": true, | 68 "actual": "CRASH", |
| 70 "actual": "CRASH", | 69 "time": 1.7 |
| 71 "time": 1.7 | 70 }, |
| 72 }, | 71 "WebKit Mac10.6 (dbg)": { |
| 73 "WebKit Mac10.6 (dbg)": { | 72 "expected": "PASS", |
| 74 "expected": "PASS", | 73 "is_unexpected": true, |
| 75 "is_unexpected": true, | 74 "actual": "CRASH", |
| 76 "actual": "CRASH", | 75 "has_stderr": true, |
| 77 "has_stderr": true, | 76 "time": 2.5 |
| 78 "time": 2.5 | 77 }, |
| 79 }, | 78 "WebKit Mac10.7 (dbg)": { |
| 80 "WebKit Mac10.7 (dbg)": { | 79 "expected": "PASS", |
| 81 "expected": "PASS", | 80 "is_unexpected": true, |
| 82 "is_unexpected": true, | 81 "actual": "CRASH", |
| 83 "actual": "CRASH", | 82 "has_stderr": true, |
| 84 "has_stderr": true, | 83 "time": 3.4 |
| 85 "time": 3.4 | 84 } |
| 86 } | |
| 87 }, | 85 }, |
| 88 "oldestFailingRevision": 177164, | 86 177164, 177165 |
| 89 "newestPassingRevision": 177165 | 87 ), |
| 90 }]; | 88 ]; |
| 91 | 89 |
| 92 module("ct-results-panel"); | 90 module("ct-results-panel"); |
| 93 | 91 |
| 94 asyncTest("empty", 1, function() { | 92 asyncTest("empty", 1, function() { |
| 95 var panel = document.createElement('ct-results-panel'); | 93 var panel = document.createElement('ct-results-panel'); |
| 96 | 94 |
| 97 requestAnimationFrame(function() { | 95 requestAnimationFrame(function() { |
| 98 var message = panel.shadowRoot.querySelector('.message'); | 96 var message = panel.shadowRoot.querySelector('.message'); |
| 99 equal(message.textContent, 'No results to display.'); | 97 equal(message.textContent, 'No results to display.'); |
| 100 | 98 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 equal(results[0].failure, failure); | 154 equal(results[0].failure, failure); |
| 157 | 155 |
| 158 equal(panel.shadowRoot.querySelectorAll('ct-embedded-flakiness-dashboard').l
ength, 0); | 156 equal(panel.shadowRoot.querySelectorAll('ct-embedded-flakiness-dashboard').l
ength, 0); |
| 159 | 157 |
| 160 start(); | 158 start(); |
| 161 }); | 159 }); |
| 162 }); | 160 }); |
| 163 | 161 |
| 164 })() | 162 })() |
| 165 </script> | 163 </script> |
| OLD | NEW |