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

Unified Diff: bower_components/core-collapse/tests/html/core-collapse.html

Issue 786953007: npm_modules: Fork bower_components into Polymer 0.4.0 and 0.5.0 versions (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « bower_components/core-collapse/index.html ('k') | bower_components/core-collapse/tests/js/htmltests.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bower_components/core-collapse/tests/html/core-collapse.html
diff --git a/bower_components/core-collapse/tests/html/core-collapse.html b/bower_components/core-collapse/tests/html/core-collapse.html
deleted file mode 100644
index 588a98f669be3be379fdf1358533fffad13126c5..0000000000000000000000000000000000000000
--- a/bower_components/core-collapse/tests/html/core-collapse.html
+++ /dev/null
@@ -1,71 +0,0 @@
-<!doctype html>
-<!--
-Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
-This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
-The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
-The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
-Code distributed by Google as part of the polymer project is also
-subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
--->
-<html>
-<head>
- <title>core-collapse</title>
-
- <script src="../../../platform/platform.js"></script>
- <script src="../../../polymer-test-tools/chai/chai.js"></script>
- <script src="../../../polymer-test-tools/htmltest.js"></script>
-
-
- <link rel="import" href="../../core-collapse.html">
-
-</head>
-<body unresolved>
-
- <button onclick="document.querySelector('#collapse').toggle()">toggle collapse</button>
-
- <core-collapse id="collapse" duration="0.1" opened>
- <div>
- Forma temperiemque cornua sidera dissociata cornua recessit innabilis ligavit: solidumque coeptis nullus caelum sponte phoebe di regat mentisque tanta austro capacius amphitrite sui quin postquam semina fossae liquidum umor galeae coeptis caligine liberioris quin liquidum matutinis invasit posset: flexi glomeravit radiis certis invasit oppida postquam onerosior inclusum dominari opifex terris pace finxit quam aquae nunc sine altae auroram quam habentem homo totidemque scythiam in pondus ensis tegit caecoque poena lapidosos humanas coeperunt poena aetas totidem nec natura aethera locavit caelumque distinxit animalibus phoebe cingebant moderantum porrexerat terrae possedit sua sole diu summaque obliquis melioris orbem
- </div>
- </core-collapse>
-
- <script>
-
- var delay = 200;
- document.addEventListener('polymer-ready', function() {
- var assert = chai.assert;
- var c = document.querySelector('#collapse');
- // verify take attribute for opened is correct
- assert.equal(c.opened, true);
- setTimeout(function() {
- // get the height for the opened state
- var h = getCollapseComputedStyle().height;
- // verify the height is not 0px
- assert.notEqual(getCollapseComputedStyle().height, '0px');
- // close it
- c.opened = false;
- Platform.flush();
- setTimeout(function() {
- // verify is closed
- assert.notEqual(getCollapseComputedStyle().height, h);
- // open it
- c.opened = true;
- Platform.flush();
- setTimeout(function() {
- // verify is opened
- assert.equal(getCollapseComputedStyle().height, h);
- done();
- }, delay);
- }, delay);
- }, delay);
- });
-
- function getCollapseComputedStyle() {
- var b = document.querySelector('#collapse');
- return getComputedStyle(b);
- }
-
- </script>
-
-</body>
-</html>
« no previous file with comments | « bower_components/core-collapse/index.html ('k') | bower_components/core-collapse/tests/js/htmltests.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698