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

Side by Side Diff: Tools/GardeningServer/ui/ct-embedded-flakiness-dashboard-tests.html

Issue 464163002: Sheriff-o-Matic: Convert some more ui tests to mocha (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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-embedded-flakiness-dashboard.html">
8
9 <script>
10 (function() {
11
12 module("ct-embedded-flakiness-dashboard");
13
14 asyncTest("url", 1, function() {
15 var failure = new CTFailure('foo_tests', 'foo/bar.html');
16 var tree = "blink";
17 var embeddedFlakinessDashboard = document.createElement('ct-embedded-flakiness -dashboard');
18
19 embeddedFlakinessDashboard.test = failure;
20 embeddedFlakinessDashboard.tree = tree;
21
22 requestAnimationFrame(function() {
23 var iframe = embeddedFlakinessDashboard.shadowRoot.querySelector('#iframe');
24 equal(iframe.src, failure.embeddedFlakinessDashboardURL(tree));
25 start();
26 });
27 });
28
29 asyncTest("heightChanged", 1, function() {
30 var embeddedFlakinessDashboard = document.createElement('ct-embedded-flakiness -dashboard');
31
32 function finishTest() {
33 window.removeEventListener('message', finishTest);
34 var iframe = embeddedFlakinessDashboard.shadowRoot.querySelector('#iframe');
35 equal(iframe.style.height, "100px");
36 start();
37 }
38 window.addEventListener('message', finishTest);
39
40 requestAnimationFrame(function() {
41 window.postMessage({command: 'heightChanged', height: "100"}, '*');
42 });
43 });
44
45 })()
46 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698