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

Unified Diff: Tools/GardeningServer/ui/ct-results-comparison-tests.html

Issue 350563002: Port first garden-o-matic component over to polymer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add files Created 6 years, 6 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
« no previous file with comments | « Tools/GardeningServer/ui/ct-results-comparison.html ('k') | Tools/GardeningServer/ui/ct-test-output.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Tools/GardeningServer/ui/ct-results-comparison-tests.html
diff --git a/Tools/GardeningServer/ui/ct-results-comparison-tests.html b/Tools/GardeningServer/ui/ct-results-comparison-tests.html
new file mode 100644
index 0000000000000000000000000000000000000000..144fa9f5006a42757a01c925deda9035315c0438
--- /dev/null
+++ b/Tools/GardeningServer/ui/ct-results-comparison-tests.html
@@ -0,0 +1,43 @@
+<!--
+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-results-comparison.html">
+
+<script>
+(function () {
+
+module("ct-results-comparison");
+
+asyncTest("basic", 7, function() {
+ var comparison = document.createElement('ct-results-comparison');
+ comparison.type = results.kImageType;
+
+ var expected = "http://domain.com/dummy-expected";
+ var actual = "http://domain.com/dummy-actual";
+ var diff = "http://domain.com/dummy-diff";
+
+ comparison.expectedUrl = expected;
+ comparison.actualUrl = actual;
+ comparison.diffUrl = diff;
+
+ Platform.endOfMicrotask(function() {
+ var outputs = comparison.shadowRoot.querySelectorAll('ct-test-output');
+ equal(outputs.length, 3);
+
+ // Verify we didn't typo any of the bindings.
+ equal(outputs[0].type, results.kImageType);
+ equal(outputs[0].url, expected);
+ equal(outputs[1].type, results.kImageType);
+ equal(outputs[1].url, actual);
+ equal(outputs[2].type, results.kImageType);
+ equal(outputs[2].url, diff);
+
+ start();
+ });
+});
+
+})()
+</script>
« no previous file with comments | « Tools/GardeningServer/ui/ct-results-comparison.html ('k') | Tools/GardeningServer/ui/ct-test-output.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698