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

Unified Diff: Tools/GardeningServer/ui/test/ct-test-output-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-test-output-tests.html
diff --git a/Tools/GardeningServer/ui/test/ct-test-output-tests.html b/Tools/GardeningServer/ui/test/ct-test-output-tests.html
deleted file mode 100644
index 0b0a9c2f02de28644a6d6d8ece5cb1a42a9cd777..0000000000000000000000000000000000000000
--- a/Tools/GardeningServer/ui/test/ct-test-output-tests.html
+++ /dev/null
@@ -1,103 +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-test-output.html">
-
-<script>
-(function () {
-
-var assert = chai.assert;
-
-describe('ct-test-output', function() {
- var output;
- var resultType;
- var url;
-
- beforeEach(function(done) {
- output = document.createElement('ct-test-output');
- output.type = resultType;
- output.url = url;
-
- setTimeout(done);
- });
-
- describe('image', function() {
- before(function() {
- resultType = results.kImageType;
- url = 'https://domain.com/dummy-expected';
- });
-
- it('image', function() {
- assert.lengthOf(output.shadowRoot.querySelectorAll('iframe'), 0);
- assert.lengthOf(output.shadowRoot.querySelectorAll('audio'), 0);
-
- var images = output.shadowRoot.querySelectorAll('img');
- assert.lengthOf(images, 1);
- assert.equal(images[0].src, url);
- });
- });
-
- describe('text', function() {
- before(function() {
- resultType = results.kTextType;
- url = 'https://domain.com/dummy-expected';
- });
-
- it('text', function() {
- assert.lengthOf(output.shadowRoot.querySelectorAll('img'), 0);
- assert.lengthOf(output.shadowRoot.querySelectorAll('audio'), 0);
-
- var iframes = output.shadowRoot.querySelectorAll('ct-popout-iframe');
- assert.lengthOf(iframes, 1);
- assert.equal(iframes[0].src, url);
- });
- });
-
- describe('audio', function() {
- before(function() {
- resultType = results.kAudioType;
- url = 'https://domain.com/dummy-expected';
- });
-
- it('audio', function() {
- assert.lengthOf(output.shadowRoot.querySelectorAll('iframe'), 0);
- assert.lengthOf(output.shadowRoot.querySelectorAll('img'), 0);
-
- var audios = output.shadowRoot.querySelectorAll('audio');
- assert.lengthOf(audios, 1);
- assert.equal(audios[0].src, url);
- });
- });
-
- describe('unknown type', function() {
- before(function() {
- resultType = 'lambeosaurus';
- url = 'https://domain.com/dummy-expected';
- });
-
- it('no output', function() {
- assert.lengthOf(output.shadowRoot.querySelectorAll('iframe'), 0);
- assert.lengthOf(output.shadowRoot.querySelectorAll('audio'), 0);
- assert.lengthOf(output.shadowRoot.querySelectorAll('img'), 0);
- });
- });
-
- describe('no url', function() {
- before(function() {
- resultType = results.kImageType;
- url = undefined;
- });
-
- it('no output', function() {
- assert.lengthOf(output.shadowRoot.querySelectorAll('iframe'), 0);
- assert.lengthOf(output.shadowRoot.querySelectorAll('audio'), 0);
- assert.lengthOf(output.shadowRoot.querySelectorAll('img'), 0);
- });
- });
-});
-
-})();
-</script>
« no previous file with comments | « Tools/GardeningServer/ui/test/ct-test-list-tests.html ('k') | Tools/GardeningServer/ui/test/ct-tree-select-tests.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698