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

Unified Diff: Tools/GardeningServer/ui/test/ct-tree-select-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-tree-select-tests.html
diff --git a/Tools/GardeningServer/ui/test/ct-tree-select-tests.html b/Tools/GardeningServer/ui/test/ct-tree-select-tests.html
deleted file mode 100644
index 9a9003fb902bd90c6f36f3fba5e9964891fc080e..0000000000000000000000000000000000000000
--- a/Tools/GardeningServer/ui/test/ct-tree-select-tests.html
+++ /dev/null
@@ -1,62 +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-tree-select.html">
-
-<link rel="import" href="../../model/ct-tree-list.html">
-
-<script>
-(function () {
-
-var assert = chai.assert;
-
-describe('ct-tree-select', function() {
- var select;
-
- beforeEach(function(done) {
- select = document.createElement('ct-tree-select');
- setTimeout(done);
- });
-
- describe('tree select UI', function() {
- beforeEach(function(done) {
- var treeList = new CTTreeList();
- treeList.trees = [new CTTree("tree1", "Tree 1"), new CTTree("tree2", "Tree 2")];
-
- // This represents initialization that should be normally be done on this component.
- select.treeList = treeList;
- select.tree = treeList.defaultValue();
-
- setTimeout(done);
- });
-
- it('should show two elements, first one selected', function() {
- var options = select.shadowRoot.querySelectorAll('option');
- assert.lengthOf(options, 2);
- assert(options[0].selected);
- assert(!options[1].selected);
- assert.equal(select.treeList.trees[0].name, select.tree);
- });
-
- describe('expanded test', function() {
- beforeEach(function(done) {
- var selectElement = select.shadowRoot.querySelectorAll('select')[0];
- selectElement.selectedIndex = 1;
-
- var event = new CustomEvent('change');
- selectElement.dispatchEvent(event);
- setTimeout(done);
- });
-
- it('should have the second value as its "tree"', function() {
- assert.equal(select.treeList.trees[1].name, select.tree);
- });
- });
- });
-});
-
-})()
-</script>
« no previous file with comments | « Tools/GardeningServer/ui/test/ct-test-output-tests.html ('k') | Tools/GardeningServer/ui/test/ct-tree-status-tests.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698