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

Unified Diff: polymer_1.0.4/bower_components/iron-validator-behavior/test/iron-validator-behavior.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/iron-validator-behavior/test/iron-validator-behavior.html
diff --git a/polymer_0.5.4/bower_components/core-localstorage/test/raw.html b/polymer_1.0.4/bower_components/iron-validator-behavior/test/iron-validator-behavior.html
similarity index 52%
copy from polymer_0.5.4/bower_components/core-localstorage/test/raw.html
copy to polymer_1.0.4/bower_components/iron-validator-behavior/test/iron-validator-behavior.html
index 32bd7d9396fb588c161d69008251d77c573ca3ae..3b4ba7183305341c73697f10e6c2a84eeefa345d 100644
--- a/polymer_0.5.4/bower_components/core-localstorage/test/raw.html
+++ b/polymer_1.0.4/bower_components/iron-validator-behavior/test/iron-validator-behavior.html
@@ -1,6 +1,6 @@
<!doctype html>
<!--
-Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
+Copyright (c) 2015 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
@@ -10,38 +10,33 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
<html>
<head>
<meta charset="UTF-8">
- <title>core-localstorage-raw</title>
+ <title>iron-validator-behavior basic tests</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<script src="../../webcomponentsjs/webcomponents.js"></script>
<script src="../../web-component-tester/browser.js"></script>
-
- <link rel="import" href="../core-localstorage.html">
+ <script src="../../test-fixture/test-fixture-mocha.js"></script>
+
+ <link href="../../test-fixture/test-fixture.html" rel="import">
+ <link href="../../iron-meta/iron-meta.html" rel="import">
+ <link href="simple-validator.html" rel="import">
</head>
<body>
- <core-localstorage id="localstorage" useRaw name="core-localstorage-test"></core-localstorage>
+ <test-fixture id="basic">
+ <template>
+ <simple-validator></simple-validator>
+ </template>
+ </test-fixture>
<script>
- window.localStorage.setItem('core-localstorage-test', 'hello world');
- var storage = document.querySelector('#localstorage');
-
suite('basic', function() {
- test('load', function() {
- assert.equal(storage.value, 'hello world');
- });
-
- test('save', function(done) {
- var m = 'goodbye';
- storage.value = m;
- asyncPlatformFlush(function() {
- var v = window.localStorage.getItem(storage.name);
- assert.equal(v, m);
- done();
- });
+ test('registered in <iron-meta>', function() {
+ fixture('basic');
+ assert.ok(new Polymer.IronMeta({type: 'validator'}).byKey('simple-validator'), 'simple-validator found in <iron-meta>');
});
});

Powered by Google App Engine
This is Rietveld 408576698