OLD | NEW |
| (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-failure-grouper.html"> | |
8 | |
9 <script> | |
10 (function () { | |
11 | |
12 module("ct-failure-grouper"); | |
13 | |
14 var kExampleFailures = [{ | |
15 "testName": "http/tests/xmlhttprequest/access-control-basic-allow-preflight-
cache-invalidation-by-method.html", | |
16 "resultNodesByBuilder": { | |
17 "WebKit XP": { | |
18 "expected": "PASS", | |
19 "is_unexpected": true, | |
20 "actual": "TEXT", | |
21 "time": 0.7 | |
22 } | |
23 }, | |
24 "oldestFailingRevision": 177165, | |
25 "newestPassingRevision": 177165 | |
26 }, { | |
27 "testName": "http/tests/websocket/workers/close-code-and-reason.html", | |
28 "resultNodesByBuilder": { | |
29 "WebKit Mac10.7": { | |
30 "expected": "PASS", | |
31 "is_unexpected": true, | |
32 "actual": "TIMEOUT", | |
33 "time": 6 | |
34 } | |
35 }, | |
36 "oldestFailingRevision": 177164, | |
37 "newestPassingRevision": 177164 | |
38 }, { | |
39 "testName": "plugins/gesture-events-scrolled.html", | |
40 "resultNodesByBuilder": { | |
41 "WebKit Win7 (dbg)": { | |
42 "expected": "PASS", | |
43 "is_unexpected": true, | |
44 "actual": "CRASH", | |
45 "time": 0.9 | |
46 }, | |
47 "WebKit Mac10.6 (dbg)": { | |
48 "expected": "PASS", | |
49 "is_unexpected": true, | |
50 "actual": "CRASH", | |
51 "has_stderr": true, | |
52 "time": 1.8 | |
53 }, | |
54 "WebKit Mac10.7 (dbg)": { | |
55 "expected": "PASS", | |
56 "is_unexpected": true, | |
57 "actual": "CRASH", | |
58 "has_stderr": true, | |
59 "time": 3.2 | |
60 } | |
61 }, | |
62 "oldestFailingRevision": 177164, | |
63 "newestPassingRevision": 177165 | |
64 }, { | |
65 "testName": "plugins/transformed-events.html", | |
66 "resultNodesByBuilder": { | |
67 "WebKit Win7 (dbg)": { | |
68 "expected": "PASS", | |
69 "is_unexpected": true, | |
70 "actual": "CRASH", | |
71 "time": 0.6 | |
72 }, | |
73 "WebKit Mac10.6 (dbg)": { | |
74 "expected": "PASS", | |
75 "is_unexpected": true, | |
76 "actual": "CRASH", | |
77 "has_stderr": true, | |
78 "time": 1.4 | |
79 }, | |
80 "WebKit Mac10.7 (dbg)": { | |
81 "expected": "PASS", | |
82 "is_unexpected": true, | |
83 "actual": "CRASH", | |
84 "has_stderr": true, | |
85 "time": 3 | |
86 } | |
87 }, | |
88 "oldestFailingRevision": 177164, | |
89 "newestPassingRevision": 177165 | |
90 }, { | |
91 "testName": "plugins/gesture-events.html", | |
92 "resultNodesByBuilder": { | |
93 "WebKit Win7 (dbg)": { | |
94 "expected": "PASS", | |
95 "is_unexpected": true, | |
96 "actual": "CRASH", | |
97 "time": 1.7 | |
98 }, | |
99 "WebKit Mac10.6 (dbg)": { | |
100 "expected": "PASS", | |
101 "is_unexpected": true, | |
102 "actual": "CRASH", | |
103 "has_stderr": true, | |
104 "time": 2.5 | |
105 }, | |
106 "WebKit Mac10.7 (dbg)": { | |
107 "expected": "PASS", | |
108 "is_unexpected": true, | |
109 "actual": "CRASH", | |
110 "has_stderr": true, | |
111 "time": 3.4 | |
112 } | |
113 }, | |
114 "oldestFailingRevision": 177164, | |
115 "newestPassingRevision": 177165 | |
116 }, { | |
117 "testName": "inspector/console/console-viewport-selection.html", | |
118 "resultNodesByBuilder": { | |
119 "WebKit Linux (dbg)": { | |
120 "expected": "SLOW", | |
121 "is_unexpected": true, | |
122 "actual": "TEXT", | |
123 "bugs": ["webkit.org/b/90488"], | |
124 "time": 5.9 | |
125 }, | |
126 "WebKit Mac10.6 (dbg)": { | |
127 "actual": "TEXT", | |
128 "time": 6.5, | |
129 "bugs": ["webkit.org/b/90488"], | |
130 "is_unexpected": true, | |
131 "expected": "SLOW", | |
132 "has_stderr": true | |
133 } | |
134 }, | |
135 "oldestFailingRevision": 177164, | |
136 "newestPassingRevision": 177165 | |
137 }, { | |
138 "testName": "svg/custom/foreign-object-skew.svg", | |
139 "resultNodesByBuilder": { | |
140 "WebKit Mac10.6 (dbg)": { | |
141 "expected": "PASS", | |
142 "is_unexpected": true, | |
143 "actual": "IMAGE", | |
144 "time": 0.9 | |
145 } | |
146 }, | |
147 "oldestFailingRevision": 177164, | |
148 "newestPassingRevision": 177164 | |
149 }]; | |
150 | |
151 asyncTest("basic", 11, function() { | |
152 var grouper = document.createElement('ct-failure-grouper'); | |
153 | |
154 grouper.failures = kExampleFailures; | |
155 | |
156 Platform.endOfMicrotask(function() { | |
157 var groups = grouper.groups; | |
158 equal(groups.length, 3); | |
159 | |
160 equal(groups[0].length, 2); | |
161 equal(groups[0][0].testName, 'svg/custom/foreign-object-skew.svg'); | |
162 equal(groups[0][1].testName, 'http/tests/websocket/workers/close-code-and-re
ason.html'); | |
163 | |
164 equal(groups[1].length, 4); | |
165 equal(groups[1][0].testName, 'plugins/transformed-events.html'); | |
166 equal(groups[1][1].testName, 'plugins/gesture-events.html'); | |
167 equal(groups[1][2].testName, 'plugins/gesture-events-scrolled.html'); | |
168 equal(groups[1][3].testName, 'inspector/console/console-viewport-selection.h
tml'); | |
169 | |
170 equal(groups[2].length, 1); | |
171 equal(groups[2][0].testName, 'http/tests/xmlhttprequest/access-control-basic
-allow-preflight-cache-invalidation-by-method.html'); | |
172 | |
173 start(); | |
174 }); | |
175 }); | |
176 | |
177 })() | |
178 </script> | |
OLD | NEW |