Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Side by Side Diff: Tools/GardeningServer/ui/ct-results-by-builder-tests.html

Issue 459463003: Convert moar Sheriff-o-Matic tests to Polymer. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: forgot to add lib/network-simulator.html Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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-results-by-builder.html">
8
9 <script>
10 (function () {
11
12 var kExampleFailure = {
13 "testName": "inspector/console/console-viewport-selection.html",
14 "resultNodesByBuilder": {
15 "WebKit Mac10.6 (dbg)": {
16 "actual": "IMAGE",
17 },
18 "WebKit Linux (dbg)": {
19 "actual": "TEXT",
20 },
21 },
22 "oldestFailingRevision": 177164,
23 "newestPassingRevision": 177165,
24 };
25
26 module("ct-results-by-builder");
27
28 asyncTest("basic", 9, function() {
29 // FIXME: Remove this override when ct-results-detail is fixed to not use
30 // results.fetchResultsURLs.
31 var oldFetchResultsURLs = results.fetchResultsURLs;
32 results.fetchResultsURLs = function() { return Promise.resolve([]); };
33
34 var resultsByBuilder = document.createElement('ct-results-by-builder');
35 resultsByBuilder.failure = kExampleFailure;
36
37 requestAnimationFrame(function() {
38 var tabs = resultsByBuilder.shadowRoot.querySelectorAll('paper-tab');
39 equal(tabs.length, 2);
40 equal(tabs[0].textContent, 'WebKit Linux (dbg)');
41 equal(tabs[1].textContent, 'WebKit Mac10.6 (dbg)');
42
43 var detail = resultsByBuilder.shadowRoot.querySelectorAll('ct-results-detail ');
44 equal(detail.length, 1);
45 equal(detail[0].failure.testName, 'inspector/console/console-viewport-select ion.html');
46 equal(detail[0].builder, 'WebKit Linux (dbg)');
47
48 resultsByBuilder.shadowRoot.querySelector('paper-tabs').selected = 1;
49
50 requestAnimationFrame(function() {
51 results.fetchResultsURLs = oldFetchResultsURLs;
52
53 var detail = resultsByBuilder.shadowRoot.querySelectorAll('ct-results-deta il');
54 equal(detail.length, 1);
55 equal(detail[0].failure.testName, 'inspector/console/console-viewport-sele ction.html');
56 equal(detail[0].builder, 'WebKit Mac10.6 (dbg)');
57
58 start();
59 });
60 });
61 });
62
63 })()
64 </script>
OLDNEW
« no previous file with comments | « Tools/GardeningServer/ui/ct-party-time-tests.html ('k') | Tools/GardeningServer/ui/ct-results-comparison-tests.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698