| Index: Tools/GardeningServer/ui/ct-results-panel-tests.html
|
| diff --git a/Tools/GardeningServer/ui/ct-results-panel-tests.html b/Tools/GardeningServer/ui/ct-results-panel-tests.html
|
| deleted file mode 100644
|
| index 37cd3a1b428ef8b31865eb335b484b56a43b1669..0000000000000000000000000000000000000000
|
| --- a/Tools/GardeningServer/ui/ct-results-panel-tests.html
|
| +++ /dev/null
|
| @@ -1,165 +0,0 @@
|
| -<!--
|
| -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-results-panel.html">
|
| -
|
| -<link rel="import" href="../model/ct-failure.html">
|
| -
|
| -<script>
|
| -(function () {
|
| -
|
| -var kExampleFailures = [
|
| - new CTFailure("testName", "plugins/gesture-events-scrolled.html",
|
| - {
|
| - "WebKit Win7 (dbg)": {
|
| - "expected": "PASS",
|
| - "is_unexpected": true,
|
| - "actual": "CRASH",
|
| - "time": 0.9
|
| - },
|
| - "WebKit Mac10.6 (dbg)": {
|
| - "expected": "PASS",
|
| - "is_unexpected": true,
|
| - "actual": "CRASH",
|
| - "has_stderr": true,
|
| - "time": 1.8
|
| - },
|
| - "WebKit Mac10.7 (dbg)": {
|
| - "expected": "PASS",
|
| - "is_unexpected": true,
|
| - "actual": "CRASH",
|
| - "has_stderr": true,
|
| - "time": 3.2
|
| - }
|
| - },
|
| - 177164, 177165
|
| - ),
|
| - new CTFailure("testName", "plugins/transformed-events.html",
|
| - {
|
| - "WebKit Win7 (dbg)": {
|
| - "expected": "PASS",
|
| - "is_unexpected": true,
|
| - "actual": "CRASH",
|
| - "time": 0.6
|
| - },
|
| - "WebKit Mac10.6 (dbg)": {
|
| - "expected": "PASS",
|
| - "is_unexpected": true,
|
| - "actual": "CRASH",
|
| - "has_stderr": true,
|
| - "time": 1.4
|
| - },
|
| - "WebKit Mac10.7 (dbg)": {
|
| - "expected": "PASS",
|
| - "is_unexpected": true,
|
| - "actual": "CRASH",
|
| - "has_stderr": true,
|
| - "time": 3
|
| - }
|
| - },
|
| - 177164, 177165
|
| - ),
|
| - new CTFailure("testName", "plugins/gesture-events.html",
|
| - {
|
| - "WebKit Win7 (dbg)": {
|
| - "expected": "PASS",
|
| - "is_unexpected": true,
|
| - "actual": "CRASH",
|
| - "time": 1.7
|
| - },
|
| - "WebKit Mac10.6 (dbg)": {
|
| - "expected": "PASS",
|
| - "is_unexpected": true,
|
| - "actual": "CRASH",
|
| - "has_stderr": true,
|
| - "time": 2.5
|
| - },
|
| - "WebKit Mac10.7 (dbg)": {
|
| - "expected": "PASS",
|
| - "is_unexpected": true,
|
| - "actual": "CRASH",
|
| - "has_stderr": true,
|
| - "time": 3.4
|
| - }
|
| - },
|
| - 177164, 177165
|
| - ),
|
| -];
|
| -
|
| -module("ct-results-panel");
|
| -
|
| -asyncTest("empty", 1, function() {
|
| - var panel = document.createElement('ct-results-panel');
|
| -
|
| - requestAnimationFrame(function() {
|
| - var message = panel.shadowRoot.querySelector('.message');
|
| - equal(message.textContent, 'No results to display.');
|
| -
|
| - start();
|
| - });
|
| -});
|
| -
|
| -asyncTest("basic", 8, function() {
|
| - var panel = document.createElement('ct-results-panel');
|
| -
|
| - panel.failures = kExampleFailures;
|
| -
|
| - requestAnimationFrame(function() {
|
| - var items = panel.shadowRoot.querySelectorAll('paper-item');
|
| - equal(items.length, 3);
|
| - equal(items[0].label, 'plugins/gesture-events-scrolled.html');
|
| - equal(items[1].label, 'plugins/transformed-events.html');
|
| - equal(items[2].label, 'plugins/gesture-events.html');
|
| -
|
| - var results = panel.shadowRoot.querySelectorAll('ct-results-by-builder');
|
| - equal(results.length, 1);
|
| - equal(results[0].failure, kExampleFailures[0]);
|
| -
|
| - panel.shadowRoot.querySelector('core-menu').selected = 2;
|
| -
|
| - requestAnimationFrame(function() {
|
| - var results = panel.shadowRoot.querySelectorAll('ct-results-by-builder');
|
| - equal(results.length, 1);
|
| - equal(results[0].failure, kExampleFailures[2]);
|
| -
|
| - start();
|
| - });
|
| - });
|
| -});
|
| -
|
| -asyncTest("whole step failed", 4, function() {
|
| - var panel = document.createElement('ct-results-panel');
|
| -
|
| - var failure = {
|
| - testName: null,
|
| - step: 'foo-step',
|
| - resultNodesByBuilder: {
|
| - 'WebKit Win7 (dbg)': {
|
| - actual: 'UNKNOWN',
|
| - },
|
| - },
|
| - oldestFailingRevision: 123,
|
| - newestPassingRevision: 124,
|
| - };
|
| -
|
| - panel.failures = [failure];
|
| -
|
| - requestAnimationFrame(function() {
|
| - var items = panel.shadowRoot.querySelectorAll('paper-item');
|
| - equal(items.length, 0);
|
| -
|
| - var results = panel.shadowRoot.querySelectorAll('ct-results-by-builder');
|
| - equal(results.length, 1);
|
| - equal(results[0].failure, failure);
|
| -
|
| - equal(panel.shadowRoot.querySelectorAll('ct-embedded-flakiness-dashboard').length, 0);
|
| -
|
| - start();
|
| - });
|
| -});
|
| -
|
| -})()
|
| -</script>
|
|
|