mirror of
https://github.com/servo/servo.git
synced 2025-08-09 07:25:35 +01:00
Update web-platform-tests to revision 3cb5a99e5521936fb8819de8aaba806050b84184
This commit is contained in:
parent
1d2c0ba0bc
commit
c700482629
204 changed files with 5112 additions and 1445 deletions
|
@ -90,6 +90,23 @@ test(function () {
|
|||
assert_attribute_log_entry(logEntries.last(), {name: 'r', oldValue: '100', newValue: null, namespace: 'http://www.w3.org/2000/svg'});
|
||||
}, 'setAttributeNode and removeAttributeNS must enqueue and invoke attributeChangedCallback for an SVG attribute');
|
||||
|
||||
test(function () {
|
||||
const instance = document.createElement(customElement.name);
|
||||
assert_array_equals(customElement.takeLog().types(), ['constructed']);
|
||||
|
||||
instance.toggleAttribute('title', true);
|
||||
assert_equals(instance.hasAttribute('title'), true);
|
||||
var logEntries = customElement.takeLog();
|
||||
assert_array_equals(logEntries.types(), ['attributeChanged']);
|
||||
assert_attribute_log_entry(logEntries.last(), {name: 'title', oldValue: null, newValue: '', namespace: null});
|
||||
|
||||
instance.toggleAttribute('title');
|
||||
assert_equals(instance.hasAttribute('title'), false);
|
||||
var logEntries = customElement.takeLog();
|
||||
assert_array_equals(logEntries.types(), ['attributeChanged']);
|
||||
assert_attribute_log_entry(logEntries.last(), {name: 'title', oldValue: '', newValue: null, namespace: null});
|
||||
}, 'toggleAttribute must enqueue and invoke attributeChangedCallback');
|
||||
|
||||
test(function () {
|
||||
const callsToOld = [];
|
||||
const callsToNew = [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue