| 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
|
| deleted file mode 100644
|
| index 21637b59ac8ed4838dfee8c0d1c8b6dd1402903a..0000000000000000000000000000000000000000
|
| --- a/Tools/GardeningServer/ui/ct-results-comparison-tests.html
|
| +++ /dev/null
|
| @@ -1,76 +0,0 @@
|
| -<!--
|
| -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", 8, 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;
|
| -
|
| - requestAnimationFrame(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);
|
| -
|
| - equal(comparison.shadowRoot.querySelectorAll('ct-results-comparison-zoomer').length, 0);
|
| -
|
| - start();
|
| - });
|
| -});
|
| -
|
| -asyncTest('zoomer', 3, function() {
|
| - // FIXME: Create a MouseEventMock class to use here.
|
| - var mockMouseEvent = {
|
| - clientX: 0,
|
| - clientY: 0,
|
| - target: document.createElement('div'),
|
| - }
|
| -
|
| - var imageComparison = document.createElement('ct-results-comparison');
|
| - imageComparison.type = results.kImageType;
|
| -
|
| - var nonImageComparison = document.createElement('ct-results-comparison');
|
| -
|
| - requestAnimationFrame(function() {
|
| - imageComparison._handleMouseMove(mockMouseEvent);
|
| - nonImageComparison._handleMouseMove(mockMouseEvent);
|
| -
|
| - requestAnimationFrame(function() {
|
| - equal(imageComparison.shadowRoot.querySelectorAll('ct-results-comparison-zoomer').length, 1);
|
| - equal(nonImageComparison.shadowRoot.querySelectorAll('ct-results-comparison-zoomer').length, 0);
|
| -
|
| - imageComparison.type = 'foo';
|
| -
|
| - requestAnimationFrame(function() {
|
| - equal(imageComparison.shadowRoot.querySelectorAll('ct-results-comparison-zoomer').length, 0);
|
| - start();
|
| - });
|
| - });
|
| - });
|
| -});
|
| -
|
| -})()
|
| -</script>
|
|
|