mirror of
https://github.com/servo/servo.git
synced 2025-09-07 05:28:21 +01:00
Update web-platform-tests to revision 10168e9a5d44efbc6e7d416d1d454eb9c9f1396c
This commit is contained in:
parent
c88dc51d03
commit
0e1caebaf4
791 changed files with 23381 additions and 5501 deletions
|
@ -29,6 +29,21 @@ test(function () {
|
|||
|
||||
}, 'document.createElement must create an instance of custom elements');
|
||||
|
||||
test(function () {
|
||||
class AutonomousCustomElement extends HTMLElement {};
|
||||
class IsCustomElement extends HTMLElement {};
|
||||
|
||||
customElements.define('autonomous-custom-element', AutonomousCustomElement);
|
||||
customElements.define('is-custom-element', IsCustomElement);
|
||||
|
||||
var instance = document.createElement('autonomous-custom-element', { is: "is-custom-element"});
|
||||
|
||||
assert_true(instance instanceof AutonomousCustomElement);
|
||||
assert_equals(instance.localName, 'autonomous-custom-element');
|
||||
assert_equals(instance.namespaceURI, 'http://www.w3.org/1999/xhtml', 'A custom element HTML must use HTML namespace');
|
||||
|
||||
}, 'document.createElement must create an instance of autonomous custom elements when it has is attribute');
|
||||
|
||||
function assert_reports(expected, testFunction, message) {
|
||||
var uncaughtError = null;
|
||||
window.onerror = function (message, url, lineNumber, columnNumber, error) { uncaughtError = error; return true; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue