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

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

Issue 459983002: Kill ui.js (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated to ToT 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 side-by-side diff with in-line comments
Download patch
Index: Tools/GardeningServer/ui/ct-embedded-flakiness-dashboard-tests.html
diff --git a/Tools/GardeningServer/ui/ct-embedded-flakiness-dashboard-tests.html b/Tools/GardeningServer/ui/ct-embedded-flakiness-dashboard-tests.html
new file mode 100644
index 0000000000000000000000000000000000000000..01fc1e427a82d94754e3fb38e72c322b6e906aba
--- /dev/null
+++ b/Tools/GardeningServer/ui/ct-embedded-flakiness-dashboard-tests.html
@@ -0,0 +1,46 @@
+<!--
+Copyright 2014 The Chromium Authors. All rights reserved.
+Use of this source code is governed by a BSD-style license that can be
+found in the LICENSE file.
+-->
+
+<link rel="import" href="ct-embedded-flakiness-dashboard.html">
+
+<script>
+(function() {
+
+module("ct-embedded-flakiness-dashboard");
+
+asyncTest("url", 1, function() {
+ var failure = new CTFailure('foo_tests', 'foo/bar.html');
+ var tree = "blink";
+ var embeddedFlakinessDashboard = document.createElement('ct-embedded-flakiness-dashboard');
+
+ embeddedFlakinessDashboard.test = failure;
+ embeddedFlakinessDashboard.tree = tree;
+
+ requestAnimationFrame(function() {
+ var iframe = embeddedFlakinessDashboard.shadowRoot.querySelector('#iframe');
+ equal(iframe.src, failure.embeddedFlakinessDashboardURL(tree));
+ start();
+ });
+});
+
+asyncTest("heightChanged", 1, function() {
+ var embeddedFlakinessDashboard = document.createElement('ct-embedded-flakiness-dashboard');
+
+ function finishTest() {
+ window.removeEventListener('message', finishTest);
+ var iframe = embeddedFlakinessDashboard.shadowRoot.querySelector('#iframe');
+ equal(iframe.style.height, "100px");
+ start();
+ }
+ window.addEventListener('message', finishTest);
+
+ requestAnimationFrame(function() {
+ window.postMessage({command: 'heightChanged', height: "100"}, '*');
+ });
+});
+
+})()
+</script>
« no previous file with comments | « Tools/GardeningServer/ui/ct-embedded-flakiness-dashboard.html ('k') | Tools/GardeningServer/ui/ct-results-by-builder.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698