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

Unified Diff: polymer_1.0.4/bower_components/google-sheets/tests/google-sheet.html

Issue 1205703007: Add polymer 1.0 to npm_modules (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Renamed folder to 1.0.4 Created 5 years, 6 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_1.0.4/bower_components/google-sheets/tests/google-sheet.html
diff --git a/polymer_1.0.4/bower_components/google-sheets/tests/google-sheet.html b/polymer_1.0.4/bower_components/google-sheets/tests/google-sheet.html
new file mode 100644
index 0000000000000000000000000000000000000000..89d5895f20832d8dea6dd32a91d68d1405736016
--- /dev/null
+++ b/polymer_1.0.4/bower_components/google-sheets/tests/google-sheet.html
@@ -0,0 +1,46 @@
+<!doctype html>
+<!-- Copyright (c) 2014 Google Inc. All rights reserved. -->
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>google-sheet tests</title>
+ <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
+
+ <script src="../../../platform/platform.js"></script>
+ <link rel="import" href="../../../polymer-test-tools/tools.html">
+ <script src="../../../polymer-test-tools/htmltest.js"></script>
+
+ <link rel="import" href="../google-sheets.html">
+</head>
+<body>
+
+<google-sheets id="sheet1"></google-sheets>
+
+<script>
+document.addEventListener('polymer-ready', function() {
+
+ (function() {
+ var sheet = document.querySelector('#sheet1');
+ var root = sheet.shadowRoot;
+
+ // Check defaults.
+ assert.lengthOf(sheet.spreadsheets, 0,
+ '.spreadsheets length should default to 0');
+ assert.lengthOf(sheet.rows, 0, '.rows length should default to 0');
+ assert.isObject(sheet.sheet, '.sheet should default to {}');
+ assert.isObject(sheet.tab, '.tab should default to {}');
+
+ assert.equal(sheet.key, '', ".key default is not ''");
+ assert.equal(sheet.gid, 0, '.gid default is not 0');
+ assert.isFalse(sheet.published, '.published does not default to false');
+ assert.isNotNull(root.querySelector('google-signin-aware'),
+ 'google-signin-aware should be created for non-public sheet');
+
+ done();
+
+ })();
+
+});
+</script>
+</body>
+</html>
« no previous file with comments | « polymer_1.0.4/bower_components/google-sheets/index.html ('k') | polymer_1.0.4/bower_components/google-sheets/tests/index.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698