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

Unified Diff: polymer_0.5.0/bower_components/core-overlay/tests/html/core-overlay-quick-close.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, 12 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
Index: polymer_0.5.0/bower_components/core-overlay/tests/html/core-overlay-quick-close.html
diff --git a/polymer_0.5.0/bower_components/core-overlay/tests/html/core-overlay-quick-close.html b/polymer_0.5.0/bower_components/core-overlay/tests/html/core-overlay-quick-close.html
new file mode 100644
index 0000000000000000000000000000000000000000..bcd5376a9153f9a2fb425f34da1f8fe4891bcb9a
--- /dev/null
+++ b/polymer_0.5.0/bower_components/core-overlay/tests/html/core-overlay-quick-close.html
@@ -0,0 +1,45 @@
+<!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-overlay</title>
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
+ <script src="../../../webcomponentsjs/webcomponents.js"></script>
+ <script src="../../../polymer-test-tools/chai/chai.js"></script>
+ <script src="../../../polymer-test-tools/htmltest.js"></script>
+ <link rel="import" href="../../../core-transition/core-transition-css.html">
+ <link rel="import" href="../../core-overlay.html">
+</head>
+<body unresolved>
+
+<core-overlay>my overlay</core-overlay>
+
+<script>
+ document.addEventListener('polymer-ready', function() {
+ var overlay = document.querySelector('core-overlay');
+
+ asyncSeries([
+ function(next) {
+ // First, open the overlay.
+ overlay.open();
+ setTimeout(function() {
+ // During the opening transition, close the overlay.
+ overlay.close();
+ // Wait for any exceptions to be thrown until the transition is done.
+ setTimeout(function() { next(); }, 300);
+ }, 100);
+ },
+ ], done);
+ });
+
+</script>
+
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698