mirror of
https://github.com/Polymer/polymer.git
synced 2026-08-19 01:14:44 -05:00
toolkit -> polymer
This commit is contained in:
+5
-5
@@ -1,8 +1,8 @@
|
||||
# Contributing
|
||||
|
||||
Want to contribute to the toolkit? Great!
|
||||
Want to contribute to the polymer? Great!
|
||||
|
||||
We are more than happy to accept external contributions to the project in the form of [feedback](https://groups.google.com/forum/?fromgroups=#!forum/toolkitchen), [bug reports](/toolkitchen/toolkit/issues), and pull requests.
|
||||
We are more than happy to accept external contributions to the project in the form of [feedback](https://groups.google.com/forum/?fromgroups=#!forum/polymer-dev), [bug reports](/polymer-project/polymer/issues), and pull requests.
|
||||
|
||||
## Contributor License Agreement
|
||||
|
||||
@@ -23,7 +23,7 @@ Here's an easy guide that should get you up and running:
|
||||
|
||||
1. Fork the project on github and pull down your copy.
|
||||
|
||||
git clone git@github.com:username/toolkit.git --recursive
|
||||
git clone git@github.com:username/polymer.git --recursive
|
||||
|
||||
Note the `--recursive`. This is necessary for submodules to initialize properly. If you don't do a recursive clone, you'll have to init them manually:
|
||||
|
||||
@@ -40,8 +40,8 @@ That's it for the one time setup. Now you're ready to make a change.
|
||||
|
||||
We iterate fast! To avoid potential merge conflicts, it's a good idea to pull from the main project before making a change and submitting a pull request. The easiest way to do this is setup a remote called `upstream` and do a pull before working on a change:
|
||||
|
||||
cd toolkit
|
||||
git remote add upstream git://github.com/toolkitchen/toolkit.git
|
||||
cd polymer
|
||||
git remote add upstream git://github.com/polymer-project/polymer.git
|
||||
|
||||
Then before making a change, do a pull from the upstream `master` branch:
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012 The Toolkitchen Authors. All rights reserved.
|
||||
// Copyright (c) 2012 The Polymer-Project Authors. All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
|
||||
@@ -1,23 +1,23 @@
|
||||
Additional IP Rights Grant (Patents)
|
||||
|
||||
"This implementation" means the copyrightable works distributed by
|
||||
Google as part of the Toolkitchen project.
|
||||
Google as part of the Polymer-Project project.
|
||||
|
||||
Google hereby grants to You a perpetual, worldwide, non-exclusive,
|
||||
no-charge, royalty-free, irrevocable (except as stated in this section)
|
||||
patent license to make, have made, use, offer to sell, sell, import,
|
||||
transfer and otherwise run, modify and propagate the contents of this
|
||||
implementation of Toolkitchen, where such license applies only to those
|
||||
implementation of Polymer-Project, where such license applies only to those
|
||||
patent claims, both currently owned or controlled by Google and acquired
|
||||
in the future, licensable by Google that are necessarily infringed by
|
||||
this implementation of Toolkitchen. This grant does not include claims
|
||||
this implementation of Polymer-Project. This grant does not include claims
|
||||
that would be infringed only as a consequence of further modification of
|
||||
this implementation. If you or your agent or exclusive licensee
|
||||
institute or order or agree to the institution of patent litigation
|
||||
against any entity (including a cross-claim or counterclaim in a
|
||||
lawsuit) alleging that this implementation of Toolkitchen or any code
|
||||
incorporated within this implementation of Toolkitchen constitutes
|
||||
lawsuit) alleging that this implementation of Polymer-Project or any code
|
||||
incorporated within this implementation of Polymer-Project constitutes
|
||||
direct or contributory patent infringement, or inducement of patent
|
||||
infringement, then any patent rights granted to you under this License
|
||||
for this implementation of Toolkitchen shall terminate as of the date
|
||||
for this implementation of Polymer-Project shall terminate as of the date
|
||||
such litigation is filed.
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
# Toolkitchen:Toolkit
|
||||
# Polymer-Project:Polymer
|
||||
|
||||
Build Status: [http://build.chromium.org/p/client.toolkit/waterfall](http://build.chromium.org/p/client.toolkit/waterfall)
|
||||
Build Status: [http://build.chromium.org/p/client.polymer/waterfall](http://build.chromium.org/p/client.polymer/waterfall)
|
||||
|
||||
## Brief Overview
|
||||
|
||||
For more detailed info goto [http://toolkitchen.github.io/](http://toolkitchen.github.io/).
|
||||
For more detailed info goto [http://polymer-project.github.io/](http://polymer-project.github.io/).
|
||||
|
||||
The Toolkitchen Toolkit is a new type of library for the web, designed to leverage the existing browser infrastructure to provide the encapsulation and extendability currently only available in JS libraries.
|
||||
The Polymer-Project Polymer is a new type of library for the web, designed to leverage the existing browser infrastructure to provide the encapsulation and extendability currently only available in JS libraries.
|
||||
|
||||
Toolkitchen Toolkit is based on a set of future technologies, including [Shadow DOM](https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html), [Custom Elements](https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/custom/index.html) and Model Driven Views. Currently these technologies are implemented as polyfills or shims, but as browsers adopt these features natively, the platform code that drives Toolkit evacipates, leaving only the value-adds.
|
||||
Polymer-Project Polymer is based on a set of future technologies, including [Shadow DOM](https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html), [Custom Elements](https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/custom/index.html) and Model Driven Views. Currently these technologies are implemented as polyfills or shims, but as browsers adopt these features natively, the platform code that drives Polymer evacipates, leaving only the value-adds.
|
||||
|
||||
## Tools & Testing
|
||||
|
||||
For running tests or building minified files, consult the [tooling information](http://toolkitchen.github.com/tooling-strategy.html).
|
||||
For running tests or building minified files, consult the [tooling information](http://polymer-project.github.com/tooling-strategy.html).
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ files = [
|
||||
'tools/test/mocha-htmltest.js',
|
||||
'conf/mocha.conf.js',
|
||||
'node_modules/chai/chai.js',
|
||||
'toolkit.js',
|
||||
'polymer.js',
|
||||
'test/js/*.js',
|
||||
{pattern: 'tools/**/*.js', included: false},
|
||||
{pattern: 'platform/**/*', included: false},
|
||||
|
||||
+7
-7
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2013 The Toolkitchen Authors. All rights reserved.
|
||||
* Copyright 2013 The Polymer-Project Authors. All rights reserved.
|
||||
* Use of this source code is governed by a BSD-style
|
||||
* license that can be found in the LICENSE file.
|
||||
*/
|
||||
@@ -12,7 +12,7 @@ module.exports = function(grunt) {
|
||||
'platform/platform.native.min.js'
|
||||
];
|
||||
|
||||
Toolkit = [
|
||||
Polymer = [
|
||||
'src/lang.js',
|
||||
'src/oop.js',
|
||||
'src/register.js',
|
||||
@@ -65,17 +65,17 @@ module.exports = function(grunt) {
|
||||
reporters: ['crbot'],
|
||||
logLevel: 'OFF'
|
||||
},
|
||||
toolkit: {
|
||||
polymer: {
|
||||
browsers: browsers
|
||||
}
|
||||
},
|
||||
uglify: {
|
||||
Toolkit: {
|
||||
Polymer: {
|
||||
options: {
|
||||
sourceMap: 'polymer.min.js.map'
|
||||
},
|
||||
files: {
|
||||
'polymer.min.js': [].concat(Platform, Toolkit)
|
||||
'polymer.min.js': [].concat(Platform, Polymer)
|
||||
}
|
||||
},
|
||||
ToolkitNative: {
|
||||
@@ -83,7 +83,7 @@ module.exports = function(grunt) {
|
||||
sourceMap: 'polymer.native.min.js.map'
|
||||
},
|
||||
files: {
|
||||
'polymer.native.min.js': [].concat(PlatformNative, Toolkit)
|
||||
'polymer.native.min.js': [].concat(PlatformNative, Polymer)
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -116,7 +116,7 @@ module.exports = function(grunt) {
|
||||
grunt.registerTask('default', ['uglify']);
|
||||
grunt.registerTask('minify', ['uglify']);
|
||||
grunt.registerTask('docs', ['yuidoc']);
|
||||
grunt.registerTask('test', ['karma:toolkit']);
|
||||
grunt.registerTask('test', ['karma:polymer']);
|
||||
grunt.registerTask('test-buildbot', ['karma:buildbot']);
|
||||
};
|
||||
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "Toolkit",
|
||||
"name": "Polymer",
|
||||
"version": "0.0.1",
|
||||
"devDependencies": {
|
||||
"mocha": "*",
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
<!--
|
||||
Copyright 2013 The Toolkitchen Authors. All rights reserved.
|
||||
Copyright 2013 The Polymer-Project Authors. All rights reserved.
|
||||
Use of this source code is governed by a BSD-style
|
||||
license that can be found in the LICENSE file.
|
||||
-->
|
||||
@@ -8,7 +8,7 @@ license that can be found in the LICENSE file.
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title></title>
|
||||
<script src="../toolkit.js"></script>
|
||||
<script src="../polymer.js"></script>
|
||||
<link rel="import" href="x-foo.html">
|
||||
<link rel="import" href="x-bar.html">
|
||||
<link rel="import" href="x-zot.html">
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
<!--
|
||||
Copyright 2013 The Toolkitchen Authors. All rights reserved.
|
||||
Copyright 2013 The Polymer-Project Authors. All rights reserved.
|
||||
Use of this source code is governed by a BSD-style
|
||||
license that can be found in the LICENSE file.
|
||||
-->
|
||||
@@ -8,7 +8,7 @@ license that can be found in the LICENSE file.
|
||||
<content></content>
|
||||
</template>
|
||||
<script>
|
||||
Toolkit.register(this, {
|
||||
Polymer.register(this, {
|
||||
label: "tabula rasa",
|
||||
ready: function() {
|
||||
this.update();
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
<!--
|
||||
Copyright 2013 The Toolkitchen Authors. All rights reserved.
|
||||
Copyright 2013 The Polymer-Project Authors. All rights reserved.
|
||||
Use of this source code is governed by a BSD-style
|
||||
license that can be found in the LICENSE file.
|
||||
-->
|
||||
@@ -9,7 +9,7 @@ license that can be found in the LICENSE file.
|
||||
<x-bar label="{{label}}"></x-bar>
|
||||
</template>
|
||||
<script>
|
||||
Toolkit.register(this, {
|
||||
Polymer.register(this, {
|
||||
label: '',
|
||||
ready: function(root) {
|
||||
this.textContent = 'cordon bleu';
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
<!--
|
||||
Copyright 2013 The Toolkitchen Authors. All rights reserved.
|
||||
Copyright 2013 The Polymer-Project Authors. All rights reserved.
|
||||
Use of this source code is governed by a BSD-style
|
||||
license that can be found in the LICENSE file.
|
||||
-->
|
||||
@@ -8,7 +8,7 @@ license that can be found in the LICENSE file.
|
||||
<shadow></shadow>
|
||||
</template>
|
||||
<script>
|
||||
Toolkit.register(this, {
|
||||
Polymer.register(this, {
|
||||
});
|
||||
</script>
|
||||
</element>
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2013 The Toolkitchen Authors. All rights reserved.
|
||||
* Copyright 2013 The Polymer-Project Authors. All rights reserved.
|
||||
* Use of this source code is governed by a BSD-style
|
||||
* license that can be found in the LICENSE file.
|
||||
*/
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2013 The Toolkitchen Authors. All rights reserved.
|
||||
* Copyright 2013 The Polymer-Project Authors. All rights reserved.
|
||||
* Use of this source code is governed by a BSD-style
|
||||
* license that can be found in the LICENSE file.
|
||||
*/
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2013 The Toolkitchen Authors. All rights reserved.
|
||||
* Copyright 2013 The Polymer-Project Authors. All rights reserved.
|
||||
* Use of this source code is governed by a BSD-style
|
||||
* license that can be found in the LICENSE file.
|
||||
*/
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2013 The Toolkitchen Authors. All rights reserved.
|
||||
* Copyright 2013 The Polymer-Project Authors. All rights reserved.
|
||||
* Use of this source code is governed by a BSD-style
|
||||
* license that can be found in the LICENSE file.
|
||||
*/
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012 The Toolkitchen Authors. All rights reserved.
|
||||
* Copyright 2012 The Polymer-Project Authors. All rights reserved.
|
||||
* Use of this source code is governed by a BSD-style
|
||||
* license that can be found in the LICENSE file.
|
||||
*/
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2013 The Toolkitchen Authors. All rights reserved.
|
||||
* Copyright 2013 The Polymer-Project Authors. All rights reserved.
|
||||
* Use of this source code is governed by a BSD-style
|
||||
* license that can be found in the LICENSE file.
|
||||
*/
|
||||
@@ -90,7 +90,7 @@
|
||||
// effective content. A template can have a ref property
|
||||
// that points to the template from which this one has been cloned.
|
||||
// Remove this when the MDV api is improved
|
||||
// (https://github.com/toolkitchen/mdv/issues/15).
|
||||
// (https://github.com/polymer-project/mdv/issues/15).
|
||||
var getTemplateContent = function(inTemplate) {
|
||||
return inTemplate.ref ? inTemplate.ref.content : inTemplate.content;
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2013 The Toolkitchen Authors. All rights reserved.
|
||||
* Copyright 2013 The Polymer-Project Authors. All rights reserved.
|
||||
* Use of this source code is governed by a BSD-style
|
||||
* license that can be found in the LICENSE file.
|
||||
*/
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2013 The Toolkitchen Authors. All rights reserved.
|
||||
* Copyright 2013 The Polymer-Project Authors. All rights reserved.
|
||||
* Use of this source code is governed by a BSD-style
|
||||
* license that can be found in the LICENSE file.
|
||||
*/
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2013 The Toolkitchen Authors. All rights reserved.
|
||||
* Copyright 2013 The Polymer-Project Authors. All rights reserved.
|
||||
* Use of this source code is governed by a BSD-style
|
||||
* license that can be found in the LICENSE file.
|
||||
*/
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2013 The Toolkitchen Authors. All rights reserved.
|
||||
* Copyright 2013 The Polymer-Project Authors. All rights reserved.
|
||||
* Use of this source code is governed by a BSD-style
|
||||
* license that can be found in the LICENSE file.
|
||||
*/
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2013 The Toolkitchen Authors. All rights reserved.
|
||||
* Copyright 2013 The Polymer-Project Authors. All rights reserved.
|
||||
* Use of this source code is governed by a BSD-style
|
||||
* license that can be found in the LICENSE file.
|
||||
*/
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2013 The Toolkitchen Authors. All rights reserved.
|
||||
* Copyright 2013 The Polymer-Project Authors. All rights reserved.
|
||||
* Use of this source code is governed by a BSD-style
|
||||
* license that can be found in the LICENSE file.
|
||||
*/
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2013 The Toolkitchen Authors. All rights reserved.
|
||||
* Copyright 2013 The Polymer-Project Authors. All rights reserved.
|
||||
* Use of this source code is governed by a BSD-style
|
||||
* license that can be found in the LICENSE file.
|
||||
*/
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012 The Toolkitchen Authors. All rights reserved.
|
||||
* Copyright 2012 The Polymer-Project Authors. All rights reserved.
|
||||
* Use of this source code is governed by a BSD-style
|
||||
* license that can be found in the LICENSE file.
|
||||
*/
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2013 The Toolkitchen Authors. All rights reserved.
|
||||
* Copyright 2013 The Polymer-Project Authors. All rights reserved.
|
||||
* Use of this source code is governed by a BSD-style
|
||||
* license that can be found in the LICENSE file.
|
||||
*/
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>bind object + repeat</title>
|
||||
<script src="../../toolkit.js"></script>
|
||||
<script src="../../polymer.js"></script>
|
||||
<script src="../../tools/test/htmltest.js"></script>
|
||||
<script src="../../node_modules/chai/chai.js"></script>
|
||||
</head>
|
||||
@@ -13,7 +13,7 @@
|
||||
<p>obj.foo is {{obj.foo}}</p>
|
||||
</template>
|
||||
<script>
|
||||
Toolkit.register(this, {
|
||||
Polymer.register(this, {
|
||||
objChanged: function() {
|
||||
console.log('x-foo', this.obj);
|
||||
}
|
||||
@@ -30,7 +30,7 @@
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
Toolkit.register(this, {
|
||||
Polymer.register(this, {
|
||||
testObj: null,
|
||||
arr: null,
|
||||
ready: function() {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>event path</title>
|
||||
<script src="../../toolkit.js"></script>
|
||||
<script src="../../polymer.js"></script>
|
||||
<script src="../../tools/test/htmltest.js"></script>
|
||||
<script src="../../node_modules/chai/chai.js"></script>
|
||||
</head>
|
||||
@@ -17,7 +17,7 @@
|
||||
<content id="selectorContent"></content>
|
||||
</template>
|
||||
<script>
|
||||
Toolkit.register(this, {
|
||||
Polymer.register(this, {
|
||||
selectedChanged: function() {
|
||||
var distributed = this.$.selectorContent.getDistributedNodes()
|
||||
console.log('must access distributed nodes', distributed);
|
||||
@@ -35,7 +35,7 @@
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
Toolkit.register(this);
|
||||
Polymer.register(this);
|
||||
</script>
|
||||
</element>
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>event path</title>
|
||||
<script src="../../toolkit.js"></script>
|
||||
<script src="../../polymer.js"></script>
|
||||
<script src="../../tools/test/htmltest.js"></script>
|
||||
<script src="../../node_modules/chai/chai.js"></script>
|
||||
</head>
|
||||
@@ -20,7 +20,7 @@
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
Toolkit.register(this);
|
||||
Polymer.register(this);
|
||||
</script>
|
||||
</element>
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
Toolkit.register(this);
|
||||
Polymer.register(this);
|
||||
</script>
|
||||
</element>
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
<content id="overlayContent"></content>
|
||||
</template>
|
||||
<script>
|
||||
Toolkit.register(this);
|
||||
Polymer.register(this);
|
||||
</script>
|
||||
</element>
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
</x-overlay>
|
||||
</template>
|
||||
<script>
|
||||
Toolkit.register(this);
|
||||
Polymer.register(this);
|
||||
</script>
|
||||
</element>
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>publish attributes</title>
|
||||
<script src="../../toolkit.js"></script>
|
||||
<script src="../../polymer.js"></script>
|
||||
<script src="../../tools/test/htmltest.js"></script>
|
||||
<script src="../../node_modules/chai/chai.js"></script>
|
||||
</head>
|
||||
@@ -10,19 +10,19 @@
|
||||
|
||||
<element name="x-foo" attributes="Foo baz" constructor="XFoo">
|
||||
<script>
|
||||
Toolkit.register(this);
|
||||
Polymer.register(this);
|
||||
</script>
|
||||
</element>
|
||||
|
||||
<element name="x-bar" extends="x-foo" attributes="Bar" constructor="XBar">
|
||||
<script>
|
||||
Toolkit.register(this);
|
||||
Polymer.register(this);
|
||||
</script>
|
||||
</element>
|
||||
|
||||
<element name="x-zot" extends="x-bar" constructor="XZot">
|
||||
<script>
|
||||
Toolkit.register(this, {
|
||||
Polymer.register(this, {
|
||||
publish: {
|
||||
zot: 3
|
||||
}
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
<element name="x-squid" extends="x-zot" attributes="squid" constructor="XSquid">
|
||||
<script>
|
||||
Toolkit.register(this, {
|
||||
Polymer.register(this, {
|
||||
publish: {
|
||||
baz: 13,
|
||||
zot: 5,
|
||||
@@ -60,11 +60,11 @@
|
||||
{Foo: null, baz: 13, Bar: null, zot: 5, squid: 7});
|
||||
//
|
||||
assert.equal(
|
||||
Toolkit.propertyForAttribute.call(XFoo.prototype, 'foo'),
|
||||
Polymer.propertyForAttribute.call(XFoo.prototype, 'foo'),
|
||||
'Foo');
|
||||
XFoo.prototype.baz = true;
|
||||
assert.isUndefined(
|
||||
Toolkit.propertyForAttribute.call(XFoo.prototype, 'splat'));
|
||||
Polymer.propertyForAttribute.call(XFoo.prototype, 'splat'));
|
||||
//
|
||||
done();
|
||||
});
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<!DOCTYPE html>
|
||||
<!--
|
||||
Copyright 2013 The Toolkitchen Authors. All rights reserved.
|
||||
Copyright 2013 The Polymer-Project Authors. All rights reserved.
|
||||
Use of this source code is governed by a BSD-style
|
||||
license that can be found in the LICENSE file.
|
||||
-->
|
||||
@@ -8,7 +8,7 @@ license that can be found in the LICENSE file.
|
||||
<head>
|
||||
<meta name="viewport" content="initial-scale=1.0">
|
||||
<title>Using @host styling</title>
|
||||
<script src="../../../toolkit.js"></script>
|
||||
<script src="../../../polymer.js"></script>
|
||||
<script src="../../../tools/test/htmltest.js"></script>
|
||||
<script src="../../../node_modules/chai/chai.js"></script>
|
||||
</head>
|
||||
@@ -77,7 +77,7 @@ license that can be found in the LICENSE file.
|
||||
</style>
|
||||
<div>red background</div>
|
||||
</template>
|
||||
<script>Toolkit.register(this)</script>
|
||||
<script>Polymer.register(this)</script>
|
||||
</element>
|
||||
|
||||
<element name="x-bar" extends="x-foo">
|
||||
@@ -92,7 +92,7 @@ license that can be found in the LICENSE file.
|
||||
<shadow></shadow>
|
||||
<div>white text</div>
|
||||
</template>
|
||||
<script>Toolkit.register(this)</script>
|
||||
<script>Polymer.register(this)</script>
|
||||
</element>
|
||||
|
||||
<element name="x-zot" extends="x-bar">
|
||||
@@ -107,7 +107,7 @@ license that can be found in the LICENSE file.
|
||||
<shadow></shadow>
|
||||
<div>orange border & gray background</div>
|
||||
</template>
|
||||
<script>Toolkit.register(this)</script>
|
||||
<script>Polymer.register(this)</script>
|
||||
</element>
|
||||
<link rel="import" href="zim.html">
|
||||
</body>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<!DOCTYPE html>
|
||||
<!--
|
||||
Copyright 2013 The Toolkitchen Authors. All rights reserved.
|
||||
Copyright 2013 The Polymer-Project Authors. All rights reserved.
|
||||
Use of this source code is governed by a BSD-style
|
||||
license that can be found in the LICENSE file.
|
||||
-->
|
||||
@@ -8,7 +8,7 @@ license that can be found in the LICENSE file.
|
||||
<head>
|
||||
<meta name="viewport" content="initial-scale=1.0">
|
||||
<title>Psuedo scoped styling</title>
|
||||
<script src="../../../toolkit.js"></script>
|
||||
<script src="../../../polymer.js"></script>
|
||||
<script src="../../../tools/test/htmltest.js"></script>
|
||||
<script src="../../../node_modules/chai/chai.js"></script>
|
||||
<style>
|
||||
@@ -35,7 +35,7 @@ license that can be found in the LICENSE file.
|
||||
</style>
|
||||
<div>20px / 50px</div>
|
||||
</template>
|
||||
<script>Toolkit.register(this)</script>
|
||||
<script>Polymer.register(this)</script>
|
||||
</element>
|
||||
|
||||
<script>
|
||||
|
||||
@@ -4,5 +4,5 @@
|
||||
<shadow></shadow>
|
||||
<div>padding: 20px</div>
|
||||
</template>
|
||||
<script>Toolkit.register(this)</script>
|
||||
<script>Polymer.register(this)</script>
|
||||
</element>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>take attributes</title>
|
||||
<script src="../../toolkit.js"></script>
|
||||
<script src="../../polymer.js"></script>
|
||||
<script src="../../tools/test/htmltest.js"></script>
|
||||
<script src="../../node_modules/chai/chai.js"></script>
|
||||
</head>
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
<element name="x-foo">
|
||||
<script>
|
||||
Toolkit.register(this, {
|
||||
Polymer.register(this, {
|
||||
publish: {
|
||||
bool: false,
|
||||
num: 42,
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
<element name="x-bar" attributes="bool num str">
|
||||
<script>
|
||||
Toolkit.register(this, {
|
||||
Polymer.register(this, {
|
||||
bool: false,
|
||||
num: 42,
|
||||
str: "don't panic"
|
||||
@@ -46,7 +46,7 @@
|
||||
|
||||
<element name="x-zot" extends="x-bar" attributes="bool">
|
||||
<script>
|
||||
Toolkit.register(this, {
|
||||
Polymer.register(this, {
|
||||
num: 84
|
||||
});
|
||||
</script>
|
||||
@@ -61,7 +61,7 @@
|
||||
|
||||
<element name="x-date" attributes="value">
|
||||
<script>
|
||||
Toolkit.register(this, {
|
||||
Polymer.register(this, {
|
||||
value: new Date()
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>template distribute</title>
|
||||
<script src="../../toolkit.js"></script>
|
||||
<script src="../../polymer.js"></script>
|
||||
<script src="../../tools/test/htmltest.js"></script>
|
||||
<script src="../../node_modules/chai/chai.js"></script>
|
||||
</head>
|
||||
@@ -16,7 +16,7 @@
|
||||
<content select="*"></content>
|
||||
</template>
|
||||
<script>
|
||||
Toolkit.register(this);
|
||||
Polymer.register(this);
|
||||
</script>
|
||||
</element>
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
</x-echo>
|
||||
</template>
|
||||
<script>
|
||||
Toolkit.register(this, {
|
||||
Polymer.register(this, {
|
||||
ready: function() {
|
||||
setTimeout(function() {
|
||||
this.list = [
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2013 The Toolkitchen Authors. All rights reserved.
|
||||
* Copyright 2013 The Polymer-Project Authors. All rights reserved.
|
||||
* Use of this source code is governed by a BSD-style
|
||||
* license that can be found in the LICENSE file.
|
||||
*/
|
||||
|
||||
+3
-3
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2013 The Toolkitchen Authors. All rights reserved.
|
||||
* Copyright 2013 The Polymer-Project Authors. All rights reserved.
|
||||
* Use of this source code is governed by a BSD-style
|
||||
* license that can be found in the LICENSE file.
|
||||
*/
|
||||
@@ -11,7 +11,7 @@ suite('bindMDV', function() {
|
||||
var test = document.createElement('div');
|
||||
test.innerHTML = '<div id="a" foo="{{bar}}"></div>';
|
||||
var a = test.firstChild;
|
||||
Toolkit.bindModel.call(test, test);
|
||||
Polymer.bindModel.call(test, test);
|
||||
test.bar = 5;
|
||||
dirtyCheck();
|
||||
assert.equal(a.getAttribute('foo'), 5);
|
||||
@@ -25,7 +25,7 @@ suite('bindMDV', function() {
|
||||
var test = document.createElement('div');
|
||||
test.innerHTML = '<input value="{{bar}}" />';
|
||||
var a = test.firstChild;
|
||||
Toolkit.bindModel.call(test, test);
|
||||
Polymer.bindModel.call(test, test);
|
||||
test.bar = 'hello';
|
||||
dirtyCheck();
|
||||
assert.equal(a.value, 'hello');
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2013 The Toolkitchen Authors. All rights reserved.
|
||||
* Copyright 2013 The Polymer-Project Authors. All rights reserved.
|
||||
* Use of this source code is governed by a BSD-style
|
||||
* license that can be found in the LICENSE file.
|
||||
*/
|
||||
@@ -10,7 +10,7 @@ suite('bindProperties', function() {
|
||||
test('bind properties getter', function() {
|
||||
var a = {};
|
||||
var b = {bar: 1};
|
||||
Toolkit.bindProperties(a, 'foo', b, 'bar');
|
||||
Polymer.bindProperties(a, 'foo', b, 'bar');
|
||||
assert.equal(a.foo, 1);
|
||||
b.bar = 5;
|
||||
assert.equal(a.foo, 5);
|
||||
@@ -19,7 +19,7 @@ suite('bindProperties', function() {
|
||||
test('bind properties setter', function() {
|
||||
var a = {};
|
||||
var b = {bar: 1};
|
||||
Toolkit.bindProperties(a, 'foo', b, 'bar');
|
||||
Polymer.bindProperties(a, 'foo', b, 'bar');
|
||||
assert.equal(b.bar, 1);
|
||||
a.foo = 5;
|
||||
assert.equal(b.bar, 5);
|
||||
@@ -28,7 +28,7 @@ suite('bindProperties', function() {
|
||||
test('bind properties paths', function() {
|
||||
var a = {};
|
||||
var b = {bar: {zot: 2}};
|
||||
Toolkit.bindProperties(a, 'foo', b, 'bar.zot');
|
||||
Polymer.bindProperties(a, 'foo', b, 'bar.zot');
|
||||
assert.equal(a.foo, 2);
|
||||
b.bar.zot = 9;
|
||||
assert.equal(a.foo, 9);
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2013 The Toolkitchen Authors. All rights reserved.
|
||||
* Copyright 2013 The Polymer-Project Authors. All rights reserved.
|
||||
* Use of this source code is governed by a BSD-style
|
||||
* license that can be found in the LICENSE file.
|
||||
*/
|
||||
@@ -25,7 +25,7 @@ suite('events', function() {
|
||||
(inExtend ? ' extends="' + inExtend + '"' : '') + ' on-click="clickHandler">' +
|
||||
'<template>' + (inTemplateContent || '') + '</template>' +
|
||||
'<script>\n' +
|
||||
'Toolkit.register(this, {\n' +
|
||||
'Polymer.register(this, {\n' +
|
||||
'clickHandler: function() {\n' +
|
||||
'results.textContent += this.localName;\n' +
|
||||
'}\n' +
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2013 The Toolkitchen Authors. All rights reserved.
|
||||
* Copyright 2013 The Polymer-Project Authors. All rights reserved.
|
||||
* Use of this source code is governed by a BSD-style
|
||||
* license that can be found in the LICENSE file.
|
||||
*/
|
||||
|
||||
+3
-3
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2013 The Toolkitchen Authors. All rights reserved.
|
||||
* Copyright 2013 The Polymer-Project Authors. All rights reserved.
|
||||
* Use of this source code is governed by a BSD-style
|
||||
* license that can be found in the LICENSE file.
|
||||
*/
|
||||
@@ -10,7 +10,7 @@ suite('marshall', function() {
|
||||
test('node references self', function() {
|
||||
var foo = document.createElement('x-foo');
|
||||
foo.innerHTML = '<div id="bar">barContent</div><div id="zot">zotContent</div>';
|
||||
Toolkit.marshalNodeReferences.call(foo, foo);
|
||||
Polymer.marshalNodeReferences.call(foo, foo);
|
||||
assert.equal(foo.$.bar.textContent, 'barContent');
|
||||
assert.equal(foo.$.zot.textContent, 'zotContent');
|
||||
});
|
||||
@@ -19,7 +19,7 @@ suite('marshall', function() {
|
||||
var foo = document.createElement('x-foo');
|
||||
var sr = foo.webkitCreateShadowRoot();
|
||||
sr.innerHTML = '<div id="bar">barContent</div><div id="zot">zotContent</div>';
|
||||
Toolkit.marshalNodeReferences.call(foo, sr);
|
||||
Polymer.marshalNodeReferences.call(foo, sr);
|
||||
assert.equal(foo.$.bar.textContent, 'barContent');
|
||||
assert.equal(foo.$.zot.textContent, 'zotContent');
|
||||
});
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2013 The Toolkitchen Authors. All rights reserved.
|
||||
* Copyright 2013 The Polymer-Project Authors. All rights reserved.
|
||||
* Use of this source code is governed by a BSD-style
|
||||
* license that can be found in the LICENSE file.
|
||||
*/
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2013 The Toolkitchen Authors. All rights reserved.
|
||||
* Copyright 2013 The Polymer-Project Authors. All rights reserved.
|
||||
* Use of this source code is governed by a BSD-style
|
||||
* license that can be found in the LICENSE file.
|
||||
*/
|
||||
@@ -21,7 +21,7 @@ suite('register', function() {
|
||||
test('register', function() {
|
||||
work.innerHTML = '<element name="x-foo">' +
|
||||
'<script>' +
|
||||
'Toolkit.register(this, {' +
|
||||
'Polymer.register(this, {' +
|
||||
'ready: function() {' +
|
||||
'this.message = "foo";' +
|
||||
'},' +
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2013 The Toolkitchen Authors. All rights reserved.
|
||||
* Copyright 2013 The Polymer-Project Authors. All rights reserved.
|
||||
* Use of this source code is governed by a BSD-style
|
||||
* license that can be found in the LICENSE file.
|
||||
*/
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2013 The Toolkitchen Authors. All rights reserved.
|
||||
* Copyright 2013 The Polymer-Project Authors. All rights reserved.
|
||||
* Use of this source code is governed by a BSD-style
|
||||
* license that can be found in the LICENSE file.
|
||||
*/
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2013 The Toolkitchen Authors. All rights reserved.
|
||||
* Copyright 2013 The Polymer-Project Authors. All rights reserved.
|
||||
* Use of this source code is governed by a BSD-style
|
||||
* license that can be found in the LICENSE file.
|
||||
*/
|
||||
|
||||
+3
-3
@@ -1,12 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<!--
|
||||
Copyright 2013 The Toolkitchen Authors. All rights reserved.
|
||||
Copyright 2013 The Polymer-Project Authors. All rights reserved.
|
||||
Use of this source code is governed by a BSD-style
|
||||
license that can be found in the LICENSE file.
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Toolkit Test Runner (Mocha)</title>
|
||||
<title>Polymer Test Runner (Mocha)</title>
|
||||
<meta charset="UTF-8">
|
||||
<!-- -->
|
||||
<link rel="stylesheet" href="../node_modules/mocha/mocha.css" />
|
||||
@@ -14,7 +14,7 @@ license that can be found in the LICENSE file.
|
||||
<script src="../node_modules/chai/chai.js"></script>
|
||||
<script src="../tools/test/mocha-htmltest.js"></script>
|
||||
<!-- -->
|
||||
<script src="../toolkit.js"></script>
|
||||
<script src="../polymer.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="mocha"></div>
|
||||
|
||||
+4
-4
@@ -1,19 +1,19 @@
|
||||
/*
|
||||
* Copyright 2013 The Toolkitchen Authors. All rights reserved.
|
||||
* Copyright 2013 The Polymer-Project Authors. All rights reserved.
|
||||
* Use of this source code is governed by a BSD-style
|
||||
* license that can be found in the LICENSE file.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright 2013 The Toolkitchen Authors. All rights reserved.
|
||||
* Copyright 2013 The Polymer-Project Authors. All rights reserved.
|
||||
* Use of this source code is governed by a BSD-style
|
||||
* license that can be found in the LICENSE file.
|
||||
*/
|
||||
|
||||
(function() {
|
||||
|
||||
var thisFile = 'toolkit.js';
|
||||
var scopeName = 'Toolkit';
|
||||
var thisFile = 'polymer.js';
|
||||
var scopeName = 'Polymer';
|
||||
var modules = [
|
||||
'platform/platform.js',
|
||||
'src/lang.js',
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
<!--
|
||||
Copyright 2013 The Toolkitchen Authors. All rights reserved.
|
||||
Copyright 2013 The Polymer-Project Authors. All rights reserved.
|
||||
Use of this source code is governed by a BSD-style
|
||||
license that can be found in the LICENSE file.
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
<title>toolkit::events</title>
|
||||
<title>polymer::events</title>
|
||||
<meta charset="utf-8">
|
||||
<script src="../../toolkit.js"></script>
|
||||
<script src="../../polymer.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -43,7 +43,7 @@ license that can be found in the LICENSE file.
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
Toolkit.register(this, {
|
||||
Polymer.register(this, {
|
||||
hostClickHandler: function(inEvent, inDetail, inSender) {
|
||||
console.log('clicked on host!', this.localName, inEvent);
|
||||
},
|
||||
@@ -84,7 +84,7 @@ license that can be found in the LICENSE file.
|
||||
</x-basic>
|
||||
</template>
|
||||
<script>
|
||||
Toolkit.register(this, {
|
||||
Polymer.register(this, {
|
||||
hostClickHandler: function(inEvent, inDetail, inSender) {
|
||||
console.log('clicked on host!', this.localName, inEvent);
|
||||
},
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<!DOCTYPE html>
|
||||
<!--
|
||||
Copyright 2013 The Toolkitchen Authors. All rights reserved.
|
||||
Copyright 2013 The Polymer-Project Authors. All rights reserved.
|
||||
Use of this source code is governed by a BSD-style
|
||||
license that can be found in the LICENSE file.
|
||||
-->
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<!DOCTYPE html>
|
||||
<!--
|
||||
Copyright 2013 The Toolkitchen Authors. All rights reserved.
|
||||
Copyright 2013 The Polymer-Project Authors. All rights reserved.
|
||||
Use of this source code is governed by a BSD-style
|
||||
license that can be found in the LICENSE file.
|
||||
-->
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<!DOCTYPE html>
|
||||
<!--
|
||||
Copyright 2013 The Toolkitchen Authors. All rights reserved.
|
||||
Copyright 2013 The Polymer-Project Authors. All rights reserved.
|
||||
Use of this source code is governed by a BSD-style
|
||||
license that can be found in the LICENSE file.
|
||||
-->
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<!DOCTYPE html>
|
||||
<!--
|
||||
Copyright 2013 The Toolkitchen Authors. All rights reserved.
|
||||
Copyright 2013 The Polymer-Project Authors. All rights reserved.
|
||||
Use of this source code is governed by a BSD-style
|
||||
license that can be found in the LICENSE file.
|
||||
-->
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<!DOCTYPE html>
|
||||
<!--
|
||||
Copyright 2013 The Toolkitchen Authors. All rights reserved.
|
||||
Copyright 2013 The Polymer-Project Authors. All rights reserved.
|
||||
Use of this source code is governed by a BSD-style
|
||||
license that can be found in the LICENSE file.
|
||||
-->
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<!DOCTYPE html>
|
||||
<!--
|
||||
Copyright 2013 The Toolkitchen Authors. All rights reserved.
|
||||
Copyright 2013 The Polymer-Project Authors. All rights reserved.
|
||||
Use of this source code is governed by a BSD-style
|
||||
license that can be found in the LICENSE file.
|
||||
-->
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<!DOCTYPE html>
|
||||
<!--
|
||||
Copyright 2013 The Toolkitchen Authors. All rights reserved.
|
||||
Copyright 2013 The Polymer-Project Authors. All rights reserved.
|
||||
Use of this source code is governed by a BSD-style
|
||||
license that can be found in the LICENSE file.
|
||||
-->
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<!DOCTYPE html>
|
||||
<!--
|
||||
Copyright 2013 The Toolkitchen Authors. All rights reserved.
|
||||
Copyright 2013 The Polymer-Project Authors. All rights reserved.
|
||||
Use of this source code is governed by a BSD-style
|
||||
license that can be found in the LICENSE file.
|
||||
-->
|
||||
@@ -8,7 +8,7 @@ license that can be found in the LICENSE file.
|
||||
<head>
|
||||
<meta name="viewport" content="initial-scale=1.0">
|
||||
<title>Using @host styling</title>
|
||||
<script src="../../toolkit.js"></script>
|
||||
<script src="../../polymer.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h4>Expected: red background</h4>
|
||||
@@ -35,7 +35,7 @@ license that can be found in the LICENSE file.
|
||||
</style>
|
||||
<div>red background</div>
|
||||
</template>
|
||||
<script>Toolkit.register(this)</script>
|
||||
<script>Polymer.register(this)</script>
|
||||
</element>
|
||||
|
||||
<element name="x-bar" extends="x-foo">
|
||||
@@ -50,7 +50,7 @@ license that can be found in the LICENSE file.
|
||||
<shadow></shadow>
|
||||
<div>white text</div>
|
||||
</template>
|
||||
<script>Toolkit.register(this)</script>
|
||||
<script>Polymer.register(this)</script>
|
||||
</element>
|
||||
|
||||
<element name="x-zot" extends="x-bar">
|
||||
@@ -65,7 +65,7 @@ license that can be found in the LICENSE file.
|
||||
<shadow></shadow>
|
||||
<div>orange border & gray background</div>
|
||||
</template>
|
||||
<script>Toolkit.register(this)</script>
|
||||
<script>Polymer.register(this)</script>
|
||||
</element>
|
||||
|
||||
<link rel="import" href="zim.html">
|
||||
|
||||
@@ -4,5 +4,5 @@
|
||||
<shadow></shadow>
|
||||
<div>padding: 20px</div>
|
||||
</template>
|
||||
<script>Toolkit.register(this)</script>
|
||||
<script>Polymer.register(this)</script>
|
||||
</element>
|
||||
|
||||
Reference in New Issue
Block a user