minify
This commit is contained in:
parent
82bcca376f
commit
8a6884abef
494 changed files with 256 additions and 120180 deletions
|
@ -1,35 +0,0 @@
|
|||
{
|
||||
"name": "document-register-element",
|
||||
"description": "A stand-alone working lightweight version of the W3C Custom Elements specification",
|
||||
"main": "./build/document-register-element.js",
|
||||
"ignore": [
|
||||
"test",
|
||||
".jshintrc",
|
||||
".travis.yml",
|
||||
".TO_LOCALE.md",
|
||||
".gitignore",
|
||||
".gitmodules",
|
||||
".npmignore",
|
||||
"benchmark",
|
||||
"dom4",
|
||||
"ie8",
|
||||
"src",
|
||||
"template",
|
||||
"package.json",
|
||||
"index.html",
|
||||
"testrhino.js",
|
||||
"Makefile"
|
||||
],
|
||||
"homepage": "https://github.com/WebReflection/document-register-element",
|
||||
"version": "0.5.4",
|
||||
"_release": "0.5.4",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "0.5.4",
|
||||
"commit": "d1d0e80a1c8a0e3f9369280fca834e2cbac2ce6e"
|
||||
},
|
||||
"_source": "https://github.com/WebReflection/document-register-element.git",
|
||||
"_target": "^0.5.4",
|
||||
"_originalSource": "document-register-element",
|
||||
"_direct": true
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
Copyright (C) 2014-2015 by WebReflection
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
|
@ -1,9 +0,0 @@
|
|||
# A list of resources related to Custom Elements and this polyfill
|
||||
|
||||
## Demo
|
||||
|
||||
* [Self contained Custom Elements via restyle()](http://webreflection.blogspot.co.uk/2014/08/self-contained-custom-elements-via.html) post and its cross browser [demo](https://webreflection.github.io/custom-element/)
|
||||
* [transform-3d](https://github.com/kentaromiura/transform-3d/) repo and [its demo](http://kentaromiura.github.io/transform-3d/)
|
||||
* comparison against Polymer and demos in [Why Web Components Are Ready For Production](http://developer.telerik.com/featured/web-components-ready-production/)
|
||||
* [W3C Specifications](http://w3c.github.io/webcomponents/spec/custom/)
|
||||
* [HTML5 Rocks Article](http://www.html5rocks.com/en/tutorials/webcomponents/customelements/) except for the Shadow DOM being completely different specification
|
|
@ -1,23 +0,0 @@
|
|||
{
|
||||
"name": "document-register-element",
|
||||
"description": "A stand-alone working lightweight version of the W3C Custom Elements specification",
|
||||
"main": "./build/document-register-element.js",
|
||||
"ignore": [
|
||||
"test",
|
||||
".jshintrc",
|
||||
".travis.yml",
|
||||
".TO_LOCALE.md",
|
||||
".gitignore",
|
||||
".gitmodules",
|
||||
".npmignore",
|
||||
"benchmark",
|
||||
"dom4",
|
||||
"ie8",
|
||||
"src",
|
||||
"template",
|
||||
"package.json",
|
||||
"index.html",
|
||||
"testrhino.js",
|
||||
"Makefile"
|
||||
]
|
||||
}
|
File diff suppressed because one or more lines are too long
|
@ -1,52 +1 @@
|
|||
console.log('Loading: test.html');
|
||||
var page = require('webpage').create();
|
||||
var url = 'index.html';
|
||||
page.open(url, function (status) {
|
||||
if (status === 'success') {
|
||||
setTimeout(function () {
|
||||
var results = page.evaluate(function() {
|
||||
// remove the first node with the total from the following counts
|
||||
var passed = Math.max(0, document.querySelectorAll('.pass').length - 1);
|
||||
return {
|
||||
// retrieve the total executed tests number
|
||||
total: ''.concat(
|
||||
passed,
|
||||
' blocks (',
|
||||
document.querySelector('#wru strong').textContent.replace(/\D/g, ''),
|
||||
' single tests)'
|
||||
),
|
||||
passed: passed,
|
||||
failed: Math.max(0, document.querySelectorAll('.fail').length - 1),
|
||||
failures: [].map.call(document.querySelectorAll('.fail'), function (node) {
|
||||
return node.textContent;
|
||||
}),
|
||||
errored: Math.max(0, document.querySelectorAll('.error').length - 1),
|
||||
errors: [].map.call(document.querySelectorAll('.error'), function (node) {
|
||||
return node.textContent;
|
||||
})
|
||||
};
|
||||
});
|
||||
console.log('- - - - - - - - - -');
|
||||
console.log('total: ' + results.total);
|
||||
console.log('- - - - - - - - - -');
|
||||
console.log('passed: ' + results.passed);
|
||||
if (results.failed) {
|
||||
console.log('failures: \n' + results.failures.join('\n'));
|
||||
} else {
|
||||
console.log('failed: ' + results.failed);
|
||||
}
|
||||
if (results.errored) {
|
||||
console.log('errors: \n' + results.errors.join('\n'));
|
||||
} else {
|
||||
console.log('errored: ' + results.errored);
|
||||
}
|
||||
console.log('- - - - - - - - - -');
|
||||
if (0 < results.failed + results.errored) {
|
||||
status = 'failed';
|
||||
}
|
||||
phantom.exit(0);
|
||||
}, 2000);
|
||||
} else {
|
||||
phantom.exit(1);
|
||||
}
|
||||
});
|
||||
console.log("Loading: test.html");var page=require("webpage").create(),url="index.html";page.open(url,function(status){"success"===status?setTimeout(function(){var results=page.evaluate(function(){var passed=Math.max(0,document.querySelectorAll(".pass").length-1);return{total:"".concat(passed," blocks (",document.querySelector("#wru strong").textContent.replace(/\D/g,"")," single tests)"),passed:passed,failed:Math.max(0,document.querySelectorAll(".fail").length-1),failures:[].map.call(document.querySelectorAll(".fail"),function(node){return node.textContent}),errored:Math.max(0,document.querySelectorAll(".error").length-1),errors:[].map.call(document.querySelectorAll(".error"),function(node){return node.textContent})}});console.log("- - - - - - - - - -"),console.log("total: "+results.total),console.log("- - - - - - - - - -"),console.log("passed: "+results.passed),results.failed?console.log("failures: \n"+results.failures.join("\n")):console.log("failed: "+results.failed),results.errored?console.log("errors: \n"+results.errors.join("\n")):console.log("errored: "+results.errored),console.log("- - - - - - - - - -"),0<results.failed+results.errored&&(status="failed"),phantom.exit(0)},2e3):phantom.exit(1)});
|
Loading…
Add table
Add a link
Reference in a new issue