Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

7/11 master -> stable #204

Merged
merged 59 commits into from
Jul 11, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
cc1a5c3
slight refactoring
Jun 14, 2013
dff8b03
Merge branch 'master' of https://github.com/Polymer/polymer
Jun 14, 2013
0d9d3cb
Merge branch 'master' of https://github.com/Polymer/polymer
Jun 19, 2013
e331ea7
refactor polymer into polymer-element
Jun 19, 2013
ccb8377
refactor polymer into polymer-element
Jun 19, 2013
b081136
folderize modules
Jun 19, 2013
fbae382
folderize modules
Jun 19, 2013
35e59ab
remove broken submodule
dfreedm Jun 19, 2013
960b6b1
update tools repo
dfreedm Jun 19, 2013
7c79421
re-conceive technique for inheriting object-valued properties
Jun 19, 2013
b5cb903
Merge branch 'polymer-element' of https://github.com/Polymer/polymer …
Jun 19, 2013
bf640fd
simulate a DOM registry of tag-names to prototypes for inheritance
Jun 19, 2013
f077111
fix inherited PUBLISHED, logging tweaks
Jun 19, 2013
f41cb65
reduce unbind asynchrony, makes testing easier. Revert if there's a g…
sorvell Jun 20, 2013
e5c7907
fix incorrect argument signature
sorvell Jun 20, 2013
78f0850
adapt to new element properties
sorvell Jun 20, 2013
bdc0638
update tests (sip)
sorvell Jun 20, 2013
e9e4532
remove browserstack test config
Jun 20, 2013
3a8ac06
test: update karma config
Jun 20, 2013
e4cd286
make publish block works
frankiefu Jun 21, 2013
4bef9a7
supports attributeChanged
frankiefu Jun 21, 2013
2c8c03c
update tests for polymer-element (comment out styling/host.html test for
frankiefu Jun 21, 2013
b7c5820
add fouc prevention
frankiefu Jun 22, 2013
c365003
update test
sorvell Jun 22, 2013
a1bc22a
fix mismatch arguments in unbindProperty
frankiefu Jun 24, 2013
42d1a32
rename propertyChanged to dispatchPropertyChange to avoid conflicting…
sorvell Jun 25, 2013
6271e97
only publish the ownProperty publish block on the element prototype. …
sorvell Jun 25, 2013
017f4e1
add bind reflection api: Polymer.getBinding
sorvell Jun 25, 2013
4cccdf7
there is a templateContent() on the element, so use that in shimStyling
frankiefu Jun 25, 2013
dbed5fe
Merge pull request #192 from Polymer/polymer-element
dfreedm Jun 26, 2013
90faa16
add test for different ways to load script for polymer-element
frankiefu Jun 26, 2013
723789b
add test for inline script before polymer-element
frankiefu Jun 27, 2013
04edcca
ignore builds
dfreedm Jun 27, 2013
6f32d97
slight factoring to improve template customization hooks
Jun 28, 2013
d64626d
update gruntfile.js for new src structure
Jun 28, 2013
f8148b8
Update CONTRIBUTING.md
ebidel Jun 29, 2013
7936ff8
refactoring for micro-optimizations; make custom property finding a p…
Jul 1, 2013
af0a37d
update grunt file list.
sorvell Jul 2, 2013
5e3c09c
remove PointerEventsPolyfill.setTouchAction, it no longer necessary
dfreedm Jul 2, 2013
ae70a41
test: add new src files to test config
Jul 3, 2013
cfeb272
Fixes issue #199
ebidel Jul 7, 2013
48c0f09
Correct test to check global div
ebidel Jul 7, 2013
11acb3a
Adding test for applyAuthorStyles/resetStyleInheirtance
ebidel Jul 7, 2013
ef2c3d3
additional tests
ebidel Jul 7, 2013
fdbea70
remove bind tracking
sorvell Jul 8, 2013
ae24b2a
ShadowCSS moved to Platform
sorvell Jul 8, 2013
6549f3e
move styling test to platform repo
sorvell Jul 8, 2013
a15d38d
shim styling under ShadowDOMPolyfill
sorvell Jul 8, 2013
9dd82a9
test: add missing files to test config
Jul 8, 2013
e9ef557
remove deleted tests (these test moved to platform repo)
sorvell Jul 8, 2013
411d53c
Merge pull request #200 from ebidel/resetStyleInheritance-feature
frankiefu Jul 8, 2013
df788c3
Merge pull request #201 from ebidel/fixtest
frankiefu Jul 8, 2013
0c75227
fix issue in calling shimStyling but the element has no template
frankiefu Jul 9, 2013
f7d65cb
ensure style elements maintain scoping attribute
sorvell Jul 9, 2013
91d0de4
handle stylesheets more uniformly.
sorvell Jul 9, 2013
1dad984
controller styles supports inheritance.
sorvell Jul 9, 2013
5a6a6fe
update based on mdv changes: override createBinding instead of bind/u…
sorvell Jul 9, 2013
a10220d
bindProperty returns observer; track properties only, not bindings (t…
sorvell Jul 9, 2013
aec805f
update tests
sorvell Jul 9, 2013
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/platform/min/*.js
node_modules
docs
local.json
/test.bat
polymer.min*
polymer.sandbox*
polymer.native*
4 changes: 3 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,15 @@ Here's an easy guide that should get you up and running:
1. Fork the project on github and pull down your copy.
> replace the {{ username }} with your username and {{ repository }} with the repository name
git clone [email protected]:{{ username }}/{{ repository }}.git --recursive
git clone [email protected]:{{ username }}/{{ repository }}.git -b master --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:

git submodule init
git submodule update

Adding `-b master` is a shorthand to checkout the `master` branch. If you include it, skip step 2.

2. Development happens on the `master` branch. Get yourself on it!

git checkout master
Expand Down
197 changes: 107 additions & 90 deletions conf/karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,91 +1,108 @@
// Sample Karma configuration file, that contain pretty much all the available options
// It's used for running client tests on Travis (http://travis-ci.org/#!/karma-runner/karma)
// Most of the options can be overriden by cli arguments (see karma --help)
//
// For all available config options and default values, see:
// https://github.com/karma-runner/karma/blob/stable/lib/config.js#L54


// base path, that will be used to resolve files and exclude
basePath = '../../';

// list of files / patterns to load in the browser
files = [
'polymer/tools/test/mocha-htmltest.js',
'polymer/conf/mocha.conf.js',
'polymer/node_modules/chai/chai.js',
'polymer/polymer.js',
'polymer/test/js/*.js',
{pattern: 'platform/*.js', included: false},
{pattern: 'polymer/tools/**/*.js', included: false},
{pattern: 'polymer/src/*.js', included: false},
{pattern: 'polymer/test/**/*.html', included: false},
{pattern: 'polymer/test/**/*.css', included: false},
{pattern: 'polymer/test/**/*.js', included: false}
];

// list of files to exclude
exclude = [];

frameworks = ['mocha'];

// use dots reporter, as travis terminal does not support escaping sequences
// possible values: 'dots', 'progress', 'junit', 'teamcity'
// CLI --reporters progress
reporters = ['progress'];

// web server port
// CLI --port 9876
port = 9876;

// cli runner port
// CLI --runner-port 9100
runnerPort = 9100;

// enable / disable colors in the output (reporters and logs)
// CLI --colors --no-colors
colors = true;

// level of logging
// possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
// CLI --log-level debug
logLevel = LOG_INFO;

// enable / disable watching file and executing tests whenever any file changes
// CLI --auto-watch --no-auto-watch
autoWatch = true;

// Start these browsers, currently available:
// - Chrome
// - ChromeCanary
// - Firefox
// - Opera
// - Safari (only Mac)
// - PhantomJS
// - IE (only Windows)
// CLI --browsers Chrome,Firefox,Safari
browsers = ['ChromeCanary'];

// If browser does not capture in given timeout [ms], kill it
// CLI --capture-timeout 5000
captureTimeout = 50000;

// Auto run tests on start (when browsers are captured) and exit
// CLI --single-run --no-single-run
singleRun = true;

// report which specs are slower than 500ms
// CLI --report-slower-than 500
reportSlowerThan = 500;

// compile coffee scripts
preprocessors = {
module.exports = function(karma) {
karma.configure({
// base path, that will be used to resolve files and exclude
basePath: '../../',

// list of files / patterns to load in the browser
files: [
'polymer/tools/test/mocha-htmltest.js',
'polymer/conf/mocha.conf.js',
'polymer/node_modules/chai/chai.js',
'polymer/polymer.js',
'polymer/test/js/*.js',
{pattern: 'platform/*.js', included: false},
{pattern: 'platform/tools/**/*.js', included: false},
{pattern: 'platform/platform.*', included: false},
{pattern: 'platform/test/**/*.html', included: false},
{pattern: 'platform/test/**/*.js', included: false},
{pattern: 'platform/src/*.js', included: false},
{pattern: 'CustomElements/custom-elements.js', included: false},
{pattern: 'CustomElements/MutationObservers/*.js', included: false},
{pattern: 'CustomElements/src/*.js', included: false},
{pattern: 'HTMLImports/html-imports.js', included: false},
{pattern: 'HTMLImports/src/*', included: false},
{pattern: 'mdv/mdv.js', included: false},
{pattern: 'mdv/src/*', included: false},
{pattern: 'mdv/third_party/**/*.js', included: false},
{pattern: 'mdv/util/*.js', included: false},
{pattern: 'mdv/tests/*.js', included: false},
{pattern: 'ShadowDOM/shadowdom.js', included: false},
{pattern: 'ShadowDOM/src/**/*.js', included: false},
{pattern: 'PointerEvents/pointerevents.js', included: false},
{pattern: 'PointerEvents/src/*.js', included: false},
{pattern: 'PointerGestures/pointergestures.js', included: false},
{pattern: 'PointerGestures/src/*.js', included: false},
{pattern: 'polymer/tools/**/*.js', included: false},
{pattern: 'polymer/src/**/*.js', included: false},
{pattern: 'polymer/test/**/*.html', included: false},
{pattern: 'polymer/test/**/*.css', included: false},
{pattern: 'polymer/test/**/*.js', included: false}
],

// list of files to exclude
exclude: [],

frameworks: ['mocha'],

// use dots reporter, as travis terminal does not support escaping sequences
// possible values: 'dots', 'progress', 'junit', 'teamcity'
// CLI --reporters progress
reporters: ['progress'],

// web server port
// CLI --port 9876
port: 9876,

// cli runner port
// CLI --runner-port 9100
runnerPort: 9100,

// enable / disable colors in the output (reporters and logs)
// CLI --colors --no-colors
colors: true,

// level of logging
// possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
// CLI --log-level debug
logLevel: karma.LOG_INFO,

// enable / disable watching file and executing tests whenever any file changes
// CLI --auto-watch --no-auto-watch
autoWatch: true,

// Start these browsers, currently available:
// - Chrome
// - ChromeCanary
// - Firefox
// - Opera
// - Safari (only Mac)
// - PhantomJS
// - IE (only Windows)
// CLI --browsers Chrome,Firefox,Safari
browsers: ['ChromeCanary'],

// If browser does not capture in given timeout [ms], kill it
// CLI --capture-timeout 5000
captureTimeout: 50000,

// Auto run tests on start (when browsers are captured) and exit
// CLI --single-run --no-single-run
singleRun: true,

// report which specs are slower than 500ms
// CLI --report-slower-than 500
reportSlowerThan: 500,

// compile coffee scripts
preprocessors: {
},

plugins: [
'karma-mocha',
'karma-chrome-launcher',
'karma-firefox-launcher',
'karma-script-launcher',
'karma-crbot-reporter'
]
});
};

plugins = [
'karma-mocha',
'karma-chrome-launcher',
'karma-firefox-launcher',
'karma-script-launcher',
'karma-crbot-reporter'
]
55 changes: 29 additions & 26 deletions gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,31 @@ module.exports = function(grunt) {
];

Polymer = [
'src/build.js',
'src/lang.js',
'src/oop.js',
'src/register.js',
'src/base.js',
'src/trackObservers.js',
'src/bindProperties.js',
'src/bindMDV.js',
'src/attrs.js',
'src/marshal.js',
'src/events.js',
'src/observeProperties.js',
'src/styling.js',
'src/shimStyling.js',
'src/path.js',
'src/job.js',
'src/boot.js'
];
"polymer.js",
"boot.js",
"shimStyling.js",
"lib/lang.js",
"lib/dom.js",
"lib/deserialize.js",
"lib/job.js",
"lib/super.js",
"api.js",
"instance/utils.js",
"instance/events.js",
"instance/properties.js",
"instance/attributes.js",
"instance/mdv.js",
"instance/base.js",
"instance/styles.js",
"declaration/path.js",
"declaration/styles.js",
"declaration/events.js",
"declaration/properties.js",
"declaration/attributes.js",
"declaration/polymer-element.js"
].map(function(n) {
return "src/" + n;
});

// karma setup
var browsers;
Expand Down Expand Up @@ -63,9 +70,6 @@ module.exports = function(grunt) {
configFile: 'conf/karma.conf.js',
keepalive: true
},
browserstack: {
browsers: ["BrowserStack:IE:Win"]
},
buildbot: {
browsers: browsers,
reporters: ['crbot'],
Expand All @@ -82,7 +86,8 @@ module.exports = function(grunt) {
},
Polymer: {
options: {
sourceMap: 'polymer.min.js.map'
sourceMap: 'polymer.min.js.map',
//mangle: false, beautify: true, compress: false
},
files: {
'polymer.min.js': [].concat(Platform, Polymer)
Expand All @@ -99,9 +104,7 @@ module.exports = function(grunt) {
PolymerSandbox: {
options: {
sourceMap: 'polymer.sandbox.min.js.map',
mangle: false,
beautify: true,
compress: false
//mangle: false, beautify: true, compress: false
},
files: {
'polymer.sandbox.min.js': [].concat(PlatformSandbox, Polymer)
Expand Down Expand Up @@ -153,7 +156,7 @@ module.exports = function(grunt) {
// plugins
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-yuidoc');
grunt.loadNpmTasks('grunt-karma-0.9.1');
grunt.loadNpmTasks('grunt-karma');
grunt.loadNpmTasks('grunt-audit');

// tasks
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"grunt": "*",
"grunt-contrib-uglify": "*",
"grunt-contrib-yuidoc": "*",
"grunt-karma-0.9.1": "~0.4.3",
"grunt-karma": "~0.5.0",
"karma-mocha": "*",
"karma-script-launcher": "*",
"karma-crbot-reporter": "*",
Expand Down
44 changes: 26 additions & 18 deletions polymer.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,33 @@

var thisFile = 'polymer.js';
var scopeName = 'Polymer';

var modules = [
'../platform/platform.js',
'src/lang.js',
'src/oop.js',
'src/register.js',
'src/base.js',
'src/trackObservers.js',
'src/bindProperties.js',
'src/bindMDV.js',
'src/attrs.js',
'src/marshal.js',
'src/events.js',
'src/observeProperties.js',
'src/styling.js',
'src/shimStyling.js',
'src/path.js',
'src/job.js',
'src/boot.js'
];
"../platform/platform.js"
].concat([
"boot.js",
"lib/lang.js",
"lib/job.js",
"lib/dom.js",
"lib/super.js",
"lib/deserialize.js",
"api.js",
"instance/utils.js",
"instance/events.js",
"instance/properties.js",
"instance/attributes.js",
"instance/mdv.js",
"instance/base.js",
"instance/styles.js",
"declaration/path.js",
"declaration/styles.js",
"declaration/events.js",
"declaration/properties.js",
"declaration/attributes.js",
"declaration/polymer-element.js"
].map(function(n) {
return "src/" + n;
}));

// export

Expand Down
Loading