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

Side by Side 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 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-results-comparison.html">
8
9 <script>
10 (function () {
11
12 module("ct-results-comparison");
13
14 asyncTest("basic", 7, function() {
15 var comparison = document.createElement('ct-results-comparison');
16 comparison.type = results.kImageType;
17
18 var expected = "http://domain.com/dummy-expected";
19 var actual = "http://domain.com/dummy-actual";
20 var diff = "http://domain.com/dummy-diff";
21
22 comparison.expectedUrl = expected;
23 comparison.actualUrl = actual;
24 comparison.diffUrl = diff;
25
26 Platform.endOfMicrotask(function() {
27 var outputs = comparison.shadowRoot.querySelectorAll('ct-test-output');
28 equal(outputs.length, 3);
29
30 // Verify we didn't typo any of the bindings.
31 equal(outputs[0].type, results.kImageType);
32 equal(outputs[0].url, expected);
33 equal(outputs[1].type, results.kImageType);
34 equal(outputs[1].url, actual);
35 equal(outputs[2].type, results.kImageType);
36 equal(outputs[2].url, diff);
37
38 start();
39 });
40 });
41
42 })()
43 </script>
OLDNEW
« 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