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

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

Issue 462453002: Sheriff-O-Matic: Transition more unit tests to mocha. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase and fix 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-builder-grid.html">
8
9 <link rel="import" href="ct-builder.html">
10
11 <script>
12 (function () {
13
14 var kExampleFailures = [{
15 "testName": "plugins/gesture-events-scrolled.html",
16 "resultNodesByBuilder": {
17 "WebKit Win7 (dbg)": {
18 "actual": "CRASH",
19 "masterUrl": "http://master-one",
20 "earliestFailingBuild": "1",
21 },
22 "WebKit Mac10.6 (dbg)": {
23 "actual": "CRASH",
24 "masterUrl": "http://master-one",
25 "earliestFailingBuild": "2",
26 },
27 "WebKit Mac10.7": {
28 "actual": "TEXT",
29 "masterUrl": "http://master-one",
30 "earliestFailingBuild": "3",
31 }
32 },
33 "oldestFailingRevision": 177164,
34 "newestPassingRevision": 177165
35 }, {
36 "testName": "plugins/transformed-events.html",
37 "resultNodesByBuilder": {
38 "WebKit Win7 (dbg)": {
39 "actual": "TEXT",
40 "masterUrl": "http://master-one",
41 "earliestFailingBuild": "1",
42 },
43 "WebKit Mac10.7": {
44 "actual": "CRASH",
45 "masterUrl": "http://master-two",
46 "earliestFailingBuild": "4",
47 },
48 },
49 "oldestFailingRevision": 177164,
50 "newestPassingRevision": 177165
51 }];
52
53 var kExampleBuilderLatestRevisions = {
54 'WebKit Mac10.7': {
55 blink: 177164,
56 },
57 'WebKit Mac10.6 (dbg)': {
58 blink: 177166,
59 },
60 'WebKit Win7 (dbg)': {
61 blink: 177166,
62 },
63 };
64
65 module("ct-builder-grid");
66
67 asyncTest("basic", 5, function() {
68 var grid = document.createElement('ct-builder-grid');
69 grid.failures = kExampleFailures;
70
71 requestAnimationFrame(function() {
72 var builders = grid.shadowRoot.querySelectorAll('ct-builder');
73 equal(builders.length, 4);
74 deepEqual(builders[0].builder, new CTBuilder(
75 'http://master-one', 'WebKit Mac10.6 (dbg)', '2'));
76 deepEqual(builders[1].builder, new CTBuilder(
77 'http://master-one', 'WebKit Mac10.7', '3'));
78 deepEqual(builders[2].builder, new CTBuilder(
79 'http://master-two', 'WebKit Mac10.7', '4'));
80 deepEqual(builders[3].builder, new CTBuilder(
81 'http://master-one', 'WebKit Win7 (dbg)', '1'));
82
83 start();
84 });
85 });
86
87 })()
88 </script>
OLDNEW
« no previous file with comments | « Tools/GardeningServer/test/unit-tests.html ('k') | Tools/GardeningServer/ui/ct-builder-tests.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698