Update web-platform-tests to revision ac12b3e9488edb436f063b11213e954ae62d5a5e

This commit is contained in:
WPT Sync Bot 2019-01-30 20:36:46 -05:00
parent 65370f17c9
commit b56a3b8e69
111 changed files with 3122 additions and 68 deletions

View file

@ -0,0 +1,16 @@
<!DOCTYPE html>
<title>Custom Elements: CEReactions on HTMLCanvasElement interface</title>
<link rel="author" title="Intel" href="http://www.intel.com">
<meta name="assert" content="width, height of HTMLCanvasElement interface must have CEReactions">
<meta name="help" content="https://html.spec.whatwg.org/#the-canvas-element">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="../resources/custom-elements-helpers.js"></script>
<script src="./resources/reactions.js"></script>
<script>
testReflectAttribute('width', 'width', '15', '20', 'width on HTMLCanvasElement', 'canvas', HTMLCanvasElement);
testReflectAttribute('height', 'height', '23', '45', 'height on HTMLCanvasElement', 'canvas', HTMLCanvasElement);
</script>

View file

@ -0,0 +1,15 @@
<!DOCTYPE html>
<title>Custom Elements: CEReactions on HTMLDataElement interface</title>
<link rel="author" title="Intel" href="http://www.intel.com">
<meta name="assert" content="value of HTMLDataElement interface must have CEReactions">
<meta name="help" content="https://html.spec.whatwg.org/#the-data-element">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="../resources/custom-elements-helpers.js"></script>
<script src="./resources/reactions.js"></script>
<script>
testReflectAttribute('value', 'value', '1234', '2345', 'name on HTMLDataElement', 'data', HTMLDataElement);
</script>

View file

@ -0,0 +1,15 @@
<!DOCTYPE html>
<title>Custom Elements: CEReactions on HTMLDetailsElement interface</title>
<link rel="author" title="Intel" href="http://www.intel.com">
<meta name="assert" content="open of HTMLDetailsElement interface must have CEReactions">
<meta name="help" content="https://html.spec.whatwg.org/#the-details-element">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="../resources/custom-elements-helpers.js"></script>
<script src="./resources/reactions.js"></script>
<script>
testReflectBooleanAttribute('open', 'open', 'open on HTMLDetailsElement', 'details', HTMLDetailsElement);
</script>

View file

@ -0,0 +1,17 @@
<!DOCTYPE html>
<title>Custom Elements: CEReactions on HTMLMapElement interface</title>
<link rel="author" title="Intel" href="http://www.intel.com">
<meta name="assert" content="name of HTMLMapElement interface must have CEReactions">
<meta name="help" content="https://html.spec.whatwg.org/#the-map-element">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="../resources/custom-elements-helpers.js"></script>
<script src="./resources/reactions.js"></script>
<img usemap="#yellow" src="/images/yellow.png" alt="yellow pic">
<img usemap="#green" src="/images/green.png" alt="green pic">
<script>
testReflectAttribute('name', 'name', 'yellow', 'green', 'name on HTMLMapElement', 'map', HTMLMapElement);
</script>

View file

@ -0,0 +1,18 @@
<!DOCTYPE html>
<title>Custom Elements: CEReactions on HTMLModElement interface</title>
<link rel="author" title="Intel" href="http://www.intel.com">
<meta name="assert" content="cite, dateTime of HTMLModElement interface must have CEReactions">
<meta name="help" content="https://html.spec.whatwg.org/#attributes-common-to-ins-and-del-elements">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="../resources/custom-elements-helpers.js"></script>
<script src="./resources/reactions.js"></script>
<script>
testReflectAttribute('cite', 'cite', '../resources/custom-elements-helpers.js', './resources/reactions.js', 'cite on ins use HTMLModElement', 'ins', HTMLModElement);
testReflectAttribute('dateTime', 'datetime', '2018-12-19 00:00Z', '2018-12-20 00:00Z', 'dateTime on ins use HTMLModElement', 'ins', HTMLModElement);
testReflectAttribute('cite', 'cite', '../resources/custom-elements-helpers.js', './resources/reactions.js', 'cite on del use HTMLModElement', 'del', HTMLModElement);
testReflectAttribute('dateTime', 'datetime', '2018-10-11T01:25-07:00', '2018-10-12T01:25-07:00', 'dateTime on del use HTMLModElement', 'del', HTMLModElement);
</script>

View file

@ -0,0 +1,17 @@
<!DOCTYPE html>
<title>Custom Elements: CEReactions on HTMLOListElement interface</title>
<link rel="author" title="Intel" href="http://www.intel.com">
<meta name="assert" content="reversed, start, type of HTMLOListElement interface must have CEReactions">
<meta name="help" content="https://html.spec.whatwg.org/#the-ol-element">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="../resources/custom-elements-helpers.js"></script>
<script src="./resources/reactions.js"></script>
<script>
testReflectBooleanAttribute('reversed', 'reversed', 'reversed on HTMLOListElement', 'ol', HTMLOListElement);
testReflectAttribute('start', 'start', '2', '5', 'start on HTMLOListElement', 'ol', HTMLOListElement);
testReflectAttribute('type', 'type', '1', 'a', 'type on HTMLOListElement', 'ol', HTMLOListElement);
</script>

View file

@ -0,0 +1,16 @@
<!DOCTYPE html>
<title>Custom Elements: CEReactions on HTMLQuoteElement interface</title>
<link rel="author" title="Intel" href="http://www.intel.com">
<meta name="assert" content="cite of HTMLQuoteElement interface must have CEReactions">
<meta name="help" content="https://html.spec.whatwg.org/#the-blockquote-element">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="../resources/custom-elements-helpers.js"></script>
<script src="./resources/reactions.js"></script>
<script>
testReflectAttribute('cite', 'cite', '../resources/custom-elements-helpers.js', './resources/reactions.js', 'cite on blockquote use HTMLQuoteElement', 'blockquote', HTMLQuoteElement);
testReflectAttribute('cite', 'cite', '../resources/custom-elements-helpers.js', './resources/reactions.js', 'cite on q use HTMLQuoteElement', 'q', HTMLQuoteElement);
</script>

View file

@ -0,0 +1,15 @@
<!DOCTYPE html>
<title>Custom Elements: CEReactions on HTMLSlotElement interface</title>
<link rel="author" title="Intel" href="http://www.intel.com">
<meta name="assert" content="name of HTMLSlotElement interface must have CEReactions">
<meta name="help" content="https://html.spec.whatwg.org/#the-slot-element">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="../resources/custom-elements-helpers.js"></script>
<script src="./resources/reactions.js"></script>
<script>
testReflectAttribute('name', 'name', 'slot1', 'slot2', 'name on HTMLSlotElement', 'slot', HTMLSlotElement);
</script>

View file

@ -0,0 +1,15 @@
<!DOCTYPE html>
<title>Custom Elements: CEReactions on HTMLTimeElement interface</title>
<link rel="author" title="Intel" href="http://www.intel.com">
<meta name="assert" content="name of HTMLTimeElement interface must have CEReactions">
<meta name="help" content="https://html.spec.whatwg.org/#the-time-element">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="../resources/custom-elements-helpers.js"></script>
<script src="./resources/reactions.js"></script>
<script>
testReflectAttribute('dateTime', 'datetime', '2018-12-10', '2018-12-12', 'dateTime on HTMLTimeElement', 'time', HTMLTimeElement);
</script>

View file

@ -164,8 +164,8 @@ function testReflectAttribute(jsAttributeName, contentAttributeName, validValue1
testReflectAttributeWithContentValues(jsAttributeName, contentAttributeName, validValue1, validValue1, validValue2, validValue2, name, elementName, interfaceName);
}
function testReflectBooleanAttribute(jsAttributeName, contentAttributeName, name) {
testReflectAttributeWithContentValues(jsAttributeName, contentAttributeName, true, '', false, null, name);
function testReflectBooleanAttribute(jsAttributeName, contentAttributeName, name, elementName, interfaceName) {
testReflectAttributeWithContentValues(jsAttributeName, contentAttributeName, true, '', false, null, name, elementName, interfaceName);
}
function testAttributeAdder(testFunction, name) {