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

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

Issue 728023004: Remove GardeningServer. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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/test/ct-results-comparison-tests.html
diff --git a/Tools/GardeningServer/ui/test/ct-results-comparison-tests.html b/Tools/GardeningServer/ui/test/ct-results-comparison-tests.html
deleted file mode 100644
index 5c756af00c9d13a7650d03ab6ced20f47092d6f9..0000000000000000000000000000000000000000
--- a/Tools/GardeningServer/ui/test/ct-results-comparison-tests.html
+++ /dev/null
@@ -1,89 +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 () {
-
-var assert = chai.assert;
-
-describe('ct-results-comparison', function() {
- describe('results comparison UI', function() {
- var comparison;
- var expected, actual, diff;
-
- before(function(done) {
- comparison = document.createElement('ct-results-comparison');
- comparison.type = results.kImageType;
-
- expected = "https://domain.com/dummy-expected";
- actual = "https://domain.com/dummy-actual";
- diff = "https://domain.com/dummy-diff";
-
- comparison.expectedUrl = expected;
- comparison.actualUrl = actual;
- comparison.diffUrl = diff;
-
- setTimeout(done);
- });
-
- it('should show expected, actual and diff', function() {
- var outputs = comparison.shadowRoot.querySelectorAll('ct-test-output');
- assert.lengthOf(outputs, 3);
-
- // Verify we didn't typo any of the bindings.
- assert.equal(outputs[0].type, results.kImageType);
- assert.equal(outputs[0].url, expected);
- assert.equal(outputs[1].type, results.kImageType);
- assert.equal(outputs[1].url, actual);
- assert.equal(outputs[2].type, results.kImageType);
- assert.equal(outputs[2].url, diff);
-
- assert.lengthOf(comparison.shadowRoot.querySelectorAll('ct-results-comparison-zoomer'), 0);
- });
- });
-
- describe('zoomer', function() {
- // FIXME: Create a MouseEventMock class to use here.
- var mockMouseEvent = {
- clientX: 0,
- clientY: 0,
- target: document.createElement('div'),
- };
-
- var imageComparison;
- var nonImageComparison;
-
- before(function(done) {
- imageComparison = document.createElement('ct-results-comparison');
- imageComparison.type = results.kImageType;
- nonImageComparison = document.createElement('ct-results-comparison');
- setTimeout(done);
- });
-
- before(function(done) {
- imageComparison._handleMouseMove(mockMouseEvent);
- nonImageComparison._handleMouseMove(mockMouseEvent);
- setTimeout(done);
- });
-
- it('should exist on images', function(done) {
- assert.lengthOf(imageComparison.shadowRoot.querySelectorAll('ct-results-comparison-zoomer'), 1);
- assert.lengthOf(nonImageComparison.shadowRoot.querySelectorAll('ct-results-comparison-zoomer'), 0);
-
- imageComparison.type = 'foo';
- setTimeout(done);
- });
-
- it('should not exist on other result types', function() {
- assert.lengthOf(imageComparison.shadowRoot.querySelectorAll('ct-results-comparison-zoomer'), 0);
- });
- });
-});
-
-})()
-</script>

Powered by Google App Engine
This is Rietveld 408576698