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

Side by Side Diff: Tools/GardeningServer/ui/ct-test-list-tests.html

Issue 458473003: Group similar failures (same directory, same fixture) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: updates 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
« no previous file with comments | « Tools/GardeningServer/ui/ct-test-list.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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="../model/ct-failure.html">
7 <link rel="import" href="ct-test-list.html"> 8 <link rel="import" href="ct-test-list.html">
8 9
9 <link rel="import" href="../model/ct-failure.html"> 10 <link rel="import" href="../model/ct-failure.html">
10 11
11 <script> 12 <script>
12 (function () { 13 (function () {
13 14
14 var kExampleFailures = [ 15 var kExampleTests = [
15 new CTFailure('foo_step', "plugins/gesture-events-scrolled.html", 16 new CTFailure("foo_step", "plugins/gesture-events-scrolled.html", {}, 177164, 177165);
16 { 17 new CTFailure("foo_step", "plugins/transformed-events.html", {}, 177164, 17716 5);
17 "WebKit Mac10.6 (dbg)": { 18 new CTFailure("foo_step", "plugins/gesture-events.html", {}, 177164, 177165);
18 "actual": "IMAGE", 19 ];
19 }, 20
20 }, 177164, 177165), 21 var kExampleTestsChromium = [
21 new CTFailure('foo_step', "plugins/transformed-events.html", 22 new CTFailure("browser_tests", "SomeTest.SubTest1", {}, 177164, 177165);
22 { 23 new CTFailure("browser_tests", "SomeTest.SubTest2", {}, 177164, 177165);
23 "WebKit Mac10.6 (dbg)": { 24 ];
24 "actual": "IMAGE", 25
25 }, 26 var kExampleTestsBlink = [
26 }, 177164, 177165 27 new CTFailure("webkit_tests", "fast/events/foo.html", {}, 177164, 177165);
27 ), 28 new CTFailure("webkit_tests", "fast/events/bar.html", {}, 177164, 177165);
28 new CTFailure('foo_step', "plugins/gesture-events.html",
29 {
30 "WebKit Mac10.6 (dbg)": {
31 "actual": "IMAGE",
32 },
33 }, 177164, 177165
34 )
35 ]; 29 ];
36 30
37 module("ct-test-list"); 31 module("ct-test-list");
38 32
39 asyncTest("basic", 4, function() { 33 asyncTest("basic", 4, function() {
40 var list = document.createElement('ct-test-list'); 34 var list = document.createElement('ct-test-list');
41 35
42 list.tests = kExampleFailures; 36 list.tests = kExampleFailures;
43 list.tree = 'blink'; 37 list.tree = 'blink';
44 38
45 Platform.endOfMicrotask(function() { 39 setTimeout(function() {
46 var tests = list.shadowRoot.querySelectorAll('a'); 40 var tests = list.shadowRoot.querySelectorAll('a');
47 equal(tests.length, 3); 41 equal(tests.length, 3);
48 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'); 42 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');
49 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'); 43 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');
50 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'); 44 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');
51 45
52 start(); 46 start();
53 }); 47 });
54 }); 48 });
55 49
50 asyncTest("groupingChromium", 2, function() {
51 var list = document.createElement('ct-test-list');
52
53 list.tests = kExampleTestsChromium;
54 list.tree = 'chromium';
55
56 setTimeout(function() {
57 var tests = list.shadowRoot.querySelectorAll('a');
58 equal(tests.length, 0);
59 var icons = list.shadowRoot.querySelectorAll('paper-icon-button');
60 equal(icons.length, 1);
61
62 start();
63 });
64 });
65
66 asyncTest("groupingBlink", 2, function() {
67 var list = document.createElement('ct-test-list');
68
69 list.tests = kExampleTestsBlink;
70 list.tree = 'blink';
71
72 setTimeout(function() {
73 var tests = list.shadowRoot.querySelectorAll('a');
74 equal(tests.length, 0);
75 var icons = list.shadowRoot.querySelectorAll('paper-icon-button');
76 equal(icons.length, 1);
77
78 start();
79 });
80 });
81
56 })() 82 })()
57 </script> 83 </script>
OLDNEW
« no previous file with comments | « Tools/GardeningServer/ui/ct-test-list.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698