Changeset 196091 in webkit
- Timestamp:
- Feb 3, 2016 4:04:34 PM (8 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 56 added
- 25 edited
- 5 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/TestExpectations
r195948 r196091 266 266 imported/w3c/web-platform-tests/html/semantics/embedded-content/the-object-element/test2.html [ Skip ] 267 267 imported/w3c/web-platform-tests/html/semantics/forms/attributes-common-to-form-controls/dirname-ltr-iframe.html [ Skip ] 268 imported/w3c/web-platform-tests/html/semantics/forms/the-button-element/button-activate-frame.html [ Skip ] 268 269 imported/w3c/web-platform-tests/html/semantics/grouping-content/the-ol-element/reversed-1a.html [ Skip ] 269 270 imported/w3c/web-platform-tests/html/semantics/grouping-content/the-ol-element/reversed-1b.html [ Skip ] -
trunk/LayoutTests/imported/w3c/ChangeLog
r196079 r196091 1 2016-02-03 Chris Dumez <cdumez@apple.com> 2 3 Re-sync W3C HTML web-platform-tests 4 https://bugs.webkit.org/show_bug.cgi?id=153832 5 6 Reviewed by Sam Weinig. 7 8 Re-sync W3C HTML web-platform-tests from: 9 https://github.com/w3c/web-platform-tests/tree/master/html 10 11 * web-platform-tests/html/dom/dynamic-markup-insertion/document-writeln/document.writeln-03-expected.txt: Added. 12 * web-platform-tests/html/dom/dynamic-markup-insertion/document-writeln/document.writeln-03.html: Added. 13 * web-platform-tests/html/dom/dynamic-markup-insertion/document-writeln/w3c-import.log: 14 * web-platform-tests/html/dom/elements-obsolete.js: 15 * web-platform-tests/html/dom/interfaces-expected.txt: 16 * web-platform-tests/html/dom/interfaces.html: 17 * web-platform-tests/html/semantics/document-metadata/styling/LinkStyle-expected.txt: Added. 18 * web-platform-tests/html/semantics/document-metadata/styling/LinkStyle.html: Added. 19 * web-platform-tests/html/semantics/document-metadata/styling/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/w3c-import.log. 20 * web-platform-tests/html/semantics/embedded-content/media-elements/offsets-into-the-media-resource/w3c-import.log: 21 * web-platform-tests/html/semantics/embedded-content/media-elements/playing-the-media-resource/w3c-import.log: 22 * web-platform-tests/html/semantics/embedded-content/media-elements/track/track-element/w3c-import.log: 23 * web-platform-tests/html/semantics/embedded-content/media-elements/w3c-import.log: 24 * web-platform-tests/html/semantics/embedded-content/the-area-element/area-coords-expected.txt: Added. 25 * web-platform-tests/html/semantics/embedded-content/the-area-element/area-coords.html: Added. 26 * web-platform-tests/html/semantics/embedded-content/the-area-element/area-processing-expected.txt: Added. 27 * web-platform-tests/html/semantics/embedded-content/the-area-element/area-processing.html: Added. 28 * web-platform-tests/html/semantics/embedded-content/the-area-element/area-shape-expected.txt: Added. 29 * web-platform-tests/html/semantics/embedded-content/the-area-element/area-shape.html: Added. 30 * web-platform-tests/html/semantics/embedded-content/the-area-element/support/hit-test.js: Added. 31 (onload): 32 * web-platform-tests/html/semantics/embedded-content/the-area-element/support/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-area-element/w3c-import.log. 33 * web-platform-tests/html/semantics/embedded-content/the-area-element/w3c-import.log: 34 * web-platform-tests/html/semantics/embedded-content/the-canvas-element/toDataURL.nocontext.html: 35 * web-platform-tests/html/semantics/embedded-content/the-embed-element/w3c-import.log: 36 * web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_javascript_url_01-expected.txt: Added. 37 * web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_javascript_url_01.htm: Added. 38 * web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_allow_script-expected.txt: Added. 39 * web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_allow_script.html: Added. 40 * web-platform-tests/html/semantics/embedded-content/the-iframe-element/move_iframe_in_dom_01-expected.txt: Added. 41 * web-platform-tests/html/semantics/embedded-content/the-iframe-element/move_iframe_in_dom_01.html: Added. 42 * web-platform-tests/html/semantics/embedded-content/the-iframe-element/move_iframe_in_dom_02-expected.txt: Added. 43 * web-platform-tests/html/semantics/embedded-content/the-iframe-element/move_iframe_in_dom_02.html: Added. 44 * web-platform-tests/html/semantics/embedded-content/the-iframe-element/move_iframe_in_dom_03-expected.txt: Added. 45 * web-platform-tests/html/semantics/embedded-content/the-iframe-element/move_iframe_in_dom_03.html: Added. 46 * web-platform-tests/html/semantics/embedded-content/the-iframe-element/move_iframe_in_dom_04-expected.txt: Added. 47 * web-platform-tests/html/semantics/embedded-content/the-iframe-element/move_iframe_in_dom_04.html: Added. 48 * web-platform-tests/html/semantics/embedded-content/the-iframe-element/support/blank.htm: Added. 49 * web-platform-tests/html/semantics/embedded-content/the-iframe-element/support/sandbox_allow_script.html: Added. 50 * web-platform-tests/html/semantics/embedded-content/the-iframe-element/support/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/media-elements/track/track-element/w3c-import.log. 51 * web-platform-tests/html/semantics/embedded-content/the-iframe-element/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-object-element/w3c-import.log. 52 * web-platform-tests/html/semantics/embedded-content/the-img-element/w3c-import.log: 53 * web-platform-tests/html/semantics/embedded-content/the-object-element/w3c-import.log: 54 * web-platform-tests/html/semantics/forms/form-submission-0/url-encoded-expected.txt: Added. 55 * web-platform-tests/html/semantics/forms/form-submission-0/url-encoded.html: Added. 56 * web-platform-tests/html/semantics/forms/form-submission-0/w3c-import.log: 57 * web-platform-tests/html/semantics/forms/textfieldselection/w3c-import.log: 58 * web-platform-tests/html/semantics/forms/the-button-element/button-activate-expected.txt: Added. 59 * web-platform-tests/html/semantics/forms/the-button-element/button-activate-frame.html: Added. 60 * web-platform-tests/html/semantics/forms/the-button-element/button-activate.html: Added. 61 * web-platform-tests/html/semantics/forms/the-button-element/button-events-expected.txt: 62 * web-platform-tests/html/semantics/forms/the-button-element/button-events.html: 63 * web-platform-tests/html/semantics/forms/the-button-element/w3c-import.log: 64 * web-platform-tests/html/semantics/forms/the-form-element/form-elements-sameobject-expected.txt: Added. 65 * web-platform-tests/html/semantics/forms/the-form-element/form-elements-sameobject.html: Added. 66 * web-platform-tests/html/semantics/forms/the-form-element/w3c-import.log: 67 * web-platform-tests/html/semantics/forms/the-input-element/checkbox-expected.txt: 68 * web-platform-tests/html/semantics/forms/the-input-element/checkbox.html: 69 * web-platform-tests/html/semantics/forms/the-input-element/maxlength-expected.txt: Added. 70 * web-platform-tests/html/semantics/forms/the-input-element/maxlength.html: Added. 71 * web-platform-tests/html/semantics/forms/the-input-element/radio-expected.txt: 72 * web-platform-tests/html/semantics/forms/the-input-element/radio.html: 73 * web-platform-tests/html/semantics/forms/the-input-element/w3c-import.log: 74 * web-platform-tests/html/semantics/forms/the-option-element/option-selected-expected.txt: Added. 75 * web-platform-tests/html/semantics/forms/the-option-element/option-selected.html: Added. 76 * web-platform-tests/html/semantics/forms/the-option-element/w3c-import.log: 77 * web-platform-tests/html/semantics/forms/the-select-element/select-ask-for-reset-expected.txt: Added. 78 * web-platform-tests/html/semantics/forms/the-select-element/select-ask-for-reset.html: Added. 79 * web-platform-tests/html/semantics/forms/the-select-element/w3c-import.log: 80 * web-platform-tests/html/semantics/interactive-elements/the-details-element/w3c-import.log: 81 * web-platform-tests/html/semantics/scripting-1/the-script-element/script-text-expected.txt: 82 * web-platform-tests/html/semantics/scripting-1/the-script-element/script-text.html: 83 * web-platform-tests/html/semantics/scripting-1/the-script-element/w3c-import.log: 84 * web-platform-tests/html/semantics/tabular-data/the-tbody-element/rows-expected.txt: Added. 85 * web-platform-tests/html/semantics/tabular-data/the-tbody-element/rows.html: Added. 86 * web-platform-tests/html/semantics/tabular-data/the-tbody-element/w3c-import.log: 87 * web-platform-tests/html/semantics/tabular-data/the-tfoot-element/rows-expected.txt: Added. 88 * web-platform-tests/html/semantics/tabular-data/the-tfoot-element/rows.html: Added. 89 * web-platform-tests/html/semantics/tabular-data/the-tfoot-element/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/w3c-import.log. 90 * web-platform-tests/html/semantics/tabular-data/the-thead-element/rows-expected.txt: Added. 91 * web-platform-tests/html/semantics/tabular-data/the-thead-element/rows.html: Added. 92 * web-platform-tests/html/semantics/tabular-data/the-thead-element/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/w3c-import.log. 93 * web-platform-tests/html/semantics/tabular-data/the-tr-element/cells-expected.txt: Added. 94 * web-platform-tests/html/semantics/tabular-data/the-tr-element/cells.html: Added. 95 * web-platform-tests/html/semantics/tabular-data/the-tr-element/w3c-import.log: 96 1 97 2016-02-03 Chris Dumez <cdumez@apple.com> 2 98 -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/dynamic-markup-insertion/document-writeln/w3c-import.log
r191379 r196091 18 18 /LayoutTests/imported/w3c/web-platform-tests/html/dom/dynamic-markup-insertion/document-writeln/document.writeln-01.xhtml 19 19 /LayoutTests/imported/w3c/web-platform-tests/html/dom/dynamic-markup-insertion/document-writeln/document.writeln-02.html 20 /LayoutTests/imported/w3c/web-platform-tests/html/dom/dynamic-markup-insertion/document-writeln/document.writeln-03.html 20 21 /LayoutTests/imported/w3c/web-platform-tests/html/dom/dynamic-markup-insertion/document-writeln/original-id.json -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/elements-obsolete.js
r189472 r196091 1 1 // Up-to-date as of 2013-04-13. 2 2 var obsoleteElements = { 3 // https://html.spec.whatwg.org/multipage/#the-applet-element 3 4 applet: { 4 5 align: "string", … … 14 15 width: "string", 15 16 }, 17 // https://html.spec.whatwg.org/multipage/#the-marquee-element-2 16 18 marquee: { 17 19 behavior: "string", … … 26 28 width: "string", 27 29 }, 30 // https://html.spec.whatwg.org/multipage/#frameset 28 31 frameset: { 29 32 cols: "string", 30 33 rows: "string", 31 34 }, 35 // https://html.spec.whatwg.org/multipage/#frame 32 36 frame: { 33 37 name: "string", … … 40 44 marginWidth: {type: "string", treatNullAsEmptyString: true}, 41 45 }, 46 // https://html.spec.whatwg.org/multipage/#htmldirectoryelement 42 47 dir: { 43 48 compact: "boolean", 44 49 }, 50 // https://html.spec.whatwg.org/multipage/#htmlfontelement 45 51 font: { 46 52 color: {type: "string", treatNullAsEmptyString: true}, -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/interfaces-expected.txt
r196001 r196091 1372 1372 FAIL HTMLLinkElement interface: attribute crossOrigin assert_true: The prototype object must have a property "crossOrigin" expected true got false 1373 1373 PASS HTMLLinkElement interface: attribute rel 1374 PASS HTMLLinkElement interface: attribute relList 1374 FAIL HTMLLinkElement interface: attribute relList assert_equals: setter must be function for PutForwards, Replaceable, or non-readonly attributes expected "function" but got "undefined" 1375 1375 PASS HTMLLinkElement interface: attribute media 1376 1376 PASS HTMLLinkElement interface: attribute hreflang … … 1599 1599 PASS HTMLAnchorElement interface: attribute ping 1600 1600 PASS HTMLAnchorElement interface: attribute rel 1601 PASS HTMLAnchorElement interface: attribute relList 1601 FAIL HTMLAnchorElement interface: attribute relList assert_equals: setter must be function for PutForwards, Replaceable, or non-readonly attributes expected "function" but got "undefined" 1602 1602 PASS HTMLAnchorElement interface: attribute hreflang 1603 1603 PASS HTMLAnchorElement interface: attribute type … … 4087 4087 PASS History interface: existence and properties of interface prototype object's "constructor" property 4088 4088 FAIL History interface: attribute length assert_true: The prototype object must have a property "length" expected true got false 4089 FAIL History interface: attribute scrollRestoration assert_true: The prototype object must have a property "scrollRestoration" expected true got false 4089 4090 PASS History interface: attribute state 4090 4091 PASS History interface: operation go(long) … … 4096 4097 PASS Stringification of window.history 4097 4098 FAIL History interface: window.history must inherit property "length" with the proper type (0) assert_inherits: property "length" found on object expected in prototype chain 4098 PASS History interface: window.history must inherit property "state" with the proper type (1) 4099 PASS History interface: window.history must inherit property "go" with the proper type (2) 4099 FAIL History interface: window.history must inherit property "scrollRestoration" with the proper type (1) assert_inherits: property "scrollRestoration" not found in prototype chain 4100 PASS History interface: window.history must inherit property "state" with the proper type (2) 4101 PASS History interface: window.history must inherit property "go" with the proper type (3) 4100 4102 PASS History interface: calling go(long) on window.history with too few arguments must throw TypeError 4101 PASS History interface: window.history must inherit property "back" with the proper type ( 3)4102 PASS History interface: window.history must inherit property "forward" with the proper type ( 4)4103 PASS History interface: window.history must inherit property "pushState" with the proper type ( 5)4103 PASS History interface: window.history must inherit property "back" with the proper type (4) 4104 PASS History interface: window.history must inherit property "forward" with the proper type (5) 4105 PASS History interface: window.history must inherit property "pushState" with the proper type (6) 4104 4106 FAIL History interface: calling pushState(any,DOMString,DOMString) on window.history with too few arguments must throw TypeError assert_throws: Called with 0 arguments function "function () { 4105 4107 [native code] 4106 4108 }" did not throw 4107 PASS History interface: window.history must inherit property "replaceState" with the proper type ( 6)4109 PASS History interface: window.history must inherit property "replaceState" with the proper type (7) 4108 4110 FAIL History interface: calling replaceState(any,DOMString,DOMString) on window.history with too few arguments must throw TypeError assert_throws: Called with 0 arguments function "function () { 4109 4111 [native code] … … 4412 4414 PASS WebSocket interface: attribute extensions 4413 4415 PASS WebSocket interface: attribute protocol 4414 PASS WebSocket interface: operation close(unsigned short, DOMString)4416 PASS WebSocket interface: operation close(unsigned short,USVString) 4415 4417 PASS WebSocket interface: attribute onmessage 4416 4418 PASS WebSocket interface: attribute binaryType 4417 PASS WebSocket interface: operation send( DOMString)4419 PASS WebSocket interface: operation send(USVString) 4418 4420 PASS WebSocket interface: operation send(Blob) 4419 4421 PASS WebSocket interface: operation send(ArrayBuffer) 4420 4422 PASS WebSocket interface: operation send(ArrayBufferView) 4423 PASS WebSocket must be primary interface of new WebSocket("ws://foo") 4424 PASS Stringification of new WebSocket("ws://foo") 4425 PASS WebSocket interface: new WebSocket("ws://foo") must inherit property "url" with the proper type (0) 4426 PASS WebSocket interface: new WebSocket("ws://foo") must inherit property "CONNECTING" with the proper type (1) 4427 PASS WebSocket interface: new WebSocket("ws://foo") must inherit property "OPEN" with the proper type (2) 4428 PASS WebSocket interface: new WebSocket("ws://foo") must inherit property "CLOSING" with the proper type (3) 4429 PASS WebSocket interface: new WebSocket("ws://foo") must inherit property "CLOSED" with the proper type (4) 4430 PASS WebSocket interface: new WebSocket("ws://foo") must inherit property "readyState" with the proper type (5) 4431 PASS WebSocket interface: new WebSocket("ws://foo") must inherit property "bufferedAmount" with the proper type (6) 4432 PASS WebSocket interface: new WebSocket("ws://foo") must inherit property "onopen" with the proper type (7) 4433 PASS WebSocket interface: new WebSocket("ws://foo") must inherit property "onerror" with the proper type (8) 4434 PASS WebSocket interface: new WebSocket("ws://foo") must inherit property "onclose" with the proper type (9) 4435 PASS WebSocket interface: new WebSocket("ws://foo") must inherit property "extensions" with the proper type (10) 4436 PASS WebSocket interface: new WebSocket("ws://foo") must inherit property "protocol" with the proper type (11) 4437 PASS WebSocket interface: new WebSocket("ws://foo") must inherit property "close" with the proper type (12) 4438 PASS WebSocket interface: calling close(unsigned short,USVString) on new WebSocket("ws://foo") with too few arguments must throw TypeError 4439 PASS WebSocket interface: new WebSocket("ws://foo") must inherit property "onmessage" with the proper type (13) 4440 PASS WebSocket interface: new WebSocket("ws://foo") must inherit property "binaryType" with the proper type (14) 4441 PASS WebSocket interface: new WebSocket("ws://foo") must inherit property "send" with the proper type (15) 4442 PASS WebSocket interface: calling send(USVString) on new WebSocket("ws://foo") with too few arguments must throw TypeError 4443 PASS WebSocket interface: new WebSocket("ws://foo") must inherit property "send" with the proper type (16) 4444 PASS WebSocket interface: calling send(Blob) on new WebSocket("ws://foo") with too few arguments must throw TypeError 4445 PASS WebSocket interface: new WebSocket("ws://foo") must inherit property "send" with the proper type (17) 4446 PASS WebSocket interface: calling send(ArrayBuffer) on new WebSocket("ws://foo") with too few arguments must throw TypeError 4447 PASS WebSocket interface: new WebSocket("ws://foo") must inherit property "send" with the proper type (18) 4448 PASS WebSocket interface: calling send(ArrayBufferView) on new WebSocket("ws://foo") with too few arguments must throw TypeError 4449 PASS EventTarget interface: new WebSocket("ws://foo") must inherit property "addEventListener" with the proper type (0) 4450 FAIL EventTarget interface: calling addEventListener(DOMString,EventListener,boolean) on new WebSocket("ws://foo") with too few arguments must throw TypeError assert_throws: Called with 0 arguments function "function () { 4451 [native code] 4452 }" did not throw 4453 PASS EventTarget interface: new WebSocket("ws://foo") must inherit property "removeEventListener" with the proper type (1) 4454 FAIL EventTarget interface: calling removeEventListener(DOMString,EventListener,boolean) on new WebSocket("ws://foo") with too few arguments must throw TypeError assert_throws: Called with 0 arguments function "function () { 4455 [native code] 4456 }" did not throw 4457 PASS EventTarget interface: new WebSocket("ws://foo") must inherit property "dispatchEvent" with the proper type (2) 4458 PASS EventTarget interface: calling dispatchEvent(Event) on new WebSocket("ws://foo") with too few arguments must throw TypeError 4421 4459 FAIL CloseEvent interface: existence and properties of interface object assert_equals: class string of CloseEvent expected "[object Function]" but got "[object CloseEventConstructor]" 4422 4460 PASS CloseEvent interface object length … … 4427 4465 PASS CloseEvent interface: attribute code 4428 4466 PASS CloseEvent interface: attribute reason 4467 PASS CloseEvent must be primary interface of new CloseEvent("close") 4468 PASS Stringification of new CloseEvent("close") 4469 PASS CloseEvent interface: new CloseEvent("close") must inherit property "wasClean" with the proper type (0) 4470 PASS CloseEvent interface: new CloseEvent("close") must inherit property "code" with the proper type (1) 4471 PASS CloseEvent interface: new CloseEvent("close") must inherit property "reason" with the proper type (2) 4472 PASS Event interface: new CloseEvent("close") must inherit property "type" with the proper type (0) 4473 PASS Event interface: new CloseEvent("close") must inherit property "target" with the proper type (1) 4474 PASS Event interface: new CloseEvent("close") must inherit property "currentTarget" with the proper type (2) 4475 PASS Event interface: new CloseEvent("close") must inherit property "NONE" with the proper type (3) 4476 PASS Event interface: new CloseEvent("close") must inherit property "CAPTURING_PHASE" with the proper type (4) 4477 PASS Event interface: new CloseEvent("close") must inherit property "AT_TARGET" with the proper type (5) 4478 PASS Event interface: new CloseEvent("close") must inherit property "BUBBLING_PHASE" with the proper type (6) 4479 PASS Event interface: new CloseEvent("close") must inherit property "eventPhase" with the proper type (7) 4480 PASS Event interface: new CloseEvent("close") must inherit property "stopPropagation" with the proper type (8) 4481 PASS Event interface: new CloseEvent("close") must inherit property "stopImmediatePropagation" with the proper type (9) 4482 PASS Event interface: new CloseEvent("close") must inherit property "bubbles" with the proper type (10) 4483 PASS Event interface: new CloseEvent("close") must inherit property "cancelable" with the proper type (11) 4484 PASS Event interface: new CloseEvent("close") must inherit property "preventDefault" with the proper type (12) 4485 PASS Event interface: new CloseEvent("close") must inherit property "defaultPrevented" with the proper type (13) 4486 FAIL Event interface: new CloseEvent("close") must have own property "isTrusted" assert_own_property: expected property "isTrusted" missing 4487 PASS Event interface: new CloseEvent("close") must inherit property "timeStamp" with the proper type (15) 4488 PASS Event interface: new CloseEvent("close") must inherit property "initEvent" with the proper type (16) 4489 FAIL Event interface: calling initEvent(DOMString,boolean,boolean) on new CloseEvent("close") with too few arguments must throw TypeError assert_throws: Called with 0 arguments function "function () { 4490 [native code] 4491 }" did not throw 4429 4492 FAIL MessageChannel interface: existence and properties of interface object assert_equals: class string of MessageChannel expected "[object Function]" but got "[object MessageChannelConstructor]" 4430 4493 PASS MessageChannel interface object length -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/interfaces.html
r195594 r196091 286 286 attribute DOMString id; 287 287 attribute DOMString className; 288 [SameObject ] readonly attribute DOMTokenList classList;288 [SameObject, PutForwards=value] readonly attribute DOMTokenList classList; 289 289 290 290 boolean hasAttributes(); … … 463 463 void remove(DOMString... tokens); 464 464 boolean toggle(DOMString token, optional boolean force); 465 void replace(DOMString token, DOMString newToken); 466 boolean supports(DOMString token); 467 attribute DOMString value; 465 468 stringifier; 466 469 // iterable<DOMString>; 467 }; 468 469 interface DOMSettableTokenList : DOMTokenList { 470 attribute DOMString value; 471 }; 472 </script> 470 };</script> 473 471 <!-- UI Events IDLs --> 474 472 <script type=text/plain class=untested> … … 912 910 }; 913 911 914 [OverrideBuiltins, Exposed= Window,Worker]912 [OverrideBuiltins, Exposed=(Window,Worker)] 915 913 interface DOMStringMap { 916 914 getter DOMString (DOMString name); … … 999 997 // microdata 1000 998 attribute boolean itemScope; 1001 [PutForwards=value] readonly attribute DOM SettableTokenList itemType;999 [PutForwards=value] readonly attribute DOMTokenList itemType; 1002 1000 attribute DOMString itemId; 1003 [PutForwards=value] readonly attribute DOM SettableTokenList itemRef;1004 [PutForwards=value] readonly attribute DOM SettableTokenList itemProp;1001 [PutForwards=value] readonly attribute DOMTokenList itemRef; 1002 [PutForwards=value] readonly attribute DOMTokenList itemProp; 1005 1003 readonly attribute HTMLPropertiesCollection properties; 1006 1004 attribute any itemValue; // acts as DOMString on setting … … 1015 1013 readonly attribute DOMString accessKeyLabel; 1016 1014 attribute boolean draggable; 1017 [PutForwards=value] readonly attribute DOM SettableTokenList dropzone;1015 [PutForwards=value] readonly attribute DOMTokenList dropzone; 1018 1016 attribute DOMString contentEditable; 1019 1017 readonly attribute boolean isContentEditable; … … 1053 1051 attribute DOMString crossOrigin; 1054 1052 attribute DOMString rel; 1055 readonly attribute DOMTokenList relList;1053 [PutForwards=value] readonly attribute DOMTokenList relList; 1056 1054 attribute DOMString media; 1057 1055 attribute DOMString hreflang; 1058 1056 attribute DOMString type; 1059 [PutForwards=value] readonly attribute DOM SettableTokenList sizes;1057 [PutForwards=value] readonly attribute DOMTokenList sizes; 1060 1058 1061 1059 // also has obsolete members … … 1133 1131 attribute DOMString target; 1134 1132 attribute DOMString download; 1135 [PutForwards=value] readonly attribute DOM SettableTokenList ping;1133 [PutForwards=value] readonly attribute DOMTokenList ping; 1136 1134 attribute DOMString rel; 1137 readonly attribute DOMTokenList relList;1135 [PutForwards=value] readonly attribute DOMTokenList relList; 1138 1136 attribute DOMString hreflang; 1139 1137 attribute DOMString type; … … 1193 1191 attribute DOMString srcdoc; 1194 1192 attribute DOMString name; 1195 [PutForwards=value] readonly attribute DOM SettableTokenList sandbox;1193 [PutForwards=value] readonly attribute DOMTokenList sandbox; 1196 1194 attribute boolean seamless; 1197 1195 attribute boolean allowFullscreen; … … 1503 1501 attribute DOMString target; 1504 1502 attribute DOMString download; 1505 [PutForwards=value] readonly attribute DOM SettableTokenList ping;1503 [PutForwards=value] readonly attribute DOMTokenList ping; 1506 1504 attribute DOMString rel; 1507 1505 readonly attribute DOMTokenList relList; … … 1573 1571 attribute unsigned long colSpan; 1574 1572 attribute unsigned long rowSpan; 1575 [PutForwards=value] readonly attribute DOM SettableTokenList headers;1573 [PutForwards=value] readonly attribute DOMTokenList headers; 1576 1574 readonly attribute long cellIndex; 1577 1575 … … 1592 1590 1593 1591 readonly attribute HTMLFormControlsCollection elements; 1594 readonly attribute long length;1592 readonly attribute unsigned long length; 1595 1593 getter Element (unsigned long index); 1596 1594 getter (RadioNodeList or Element) (DOMString name); … … 1817 1815 1818 1816 interface HTMLOutputElement : HTMLElement { 1819 [PutForwards=value] readonly attribute DOM SettableTokenList htmlFor;1817 [PutForwards=value] readonly attribute DOMTokenList htmlFor; 1820 1818 readonly attribute HTMLFormElement? form; 1821 1819 attribute DOMString name; … … 1978 1976 }; 1979 1977 1980 [Exposed= Window,Worker]1978 [Exposed=(Window,Worker)] 1981 1979 interface CanvasProxy { 1982 1980 void setContext(RenderingContext context); … … 1992 1990 enum CanvasFillRule { "nonzero", "evenodd" }; 1993 1991 1994 [Constructor(optional unsigned long width, unsigned long height), Exposed= Window,Worker]1992 [Constructor(optional unsigned long width, unsigned long height), Exposed=(Window,Worker)] 1995 1993 interface CanvasRenderingContext2D { 1996 1994 … … 2087 2085 CanvasRenderingContext2D implements CanvasPathMethods; 2088 2086 2089 [NoInterfaceObject, Exposed= Window,Worker]2087 [NoInterfaceObject, Exposed=(Window,Worker)] 2090 2088 interface CanvasDrawingStyles { 2091 2089 // line caps/joins … … 2107 2105 }; 2108 2106 2109 [NoInterfaceObject, Exposed= Window,Worker]2107 [NoInterfaceObject, Exposed=(Window,Worker)] 2110 2108 interface CanvasPathMethods { 2111 2109 // shared path API methods … … 2122 2120 }; 2123 2121 2124 [Exposed= Window,Worker]2122 [Exposed=(Window,Worker)] 2125 2123 interface CanvasGradient { 2126 2124 // opaque object … … 2128 2126 }; 2129 2127 2130 [Exposed= Window,Worker]2128 [Exposed=(Window,Worker)] 2131 2129 interface CanvasPattern { 2132 2130 // opaque object … … 2134 2132 }; 2135 2133 2136 [Exposed= Window,Worker]2134 [Exposed=(Window,Worker)] 2137 2135 interface TextMetrics { 2138 2136 // x-direction … … 2168 2166 [Constructor(unsigned long sw, unsigned long sh), 2169 2167 Constructor(Uint8ClampedArray data, unsigned long sw, optional unsigned long sh), 2170 Exposed= Window,Worker]2168 Exposed=(Window,Worker)] 2171 2169 interface ImageData { 2172 2170 readonly attribute unsigned long width; … … 2175 2173 }; 2176 2174 2177 [Constructor(optional Element scope), Exposed= Window,Worker]2175 [Constructor(optional Element scope), Exposed=(Window,Worker)] 2178 2176 interface DrawingStyle { }; 2179 2177 DrawingStyle implements CanvasDrawingStyles; … … 2182 2180 Constructor(Path2D path), 2183 2181 Constructor(Path2D[] paths, optional CanvasFillRule fillRule = "nonzero"), 2184 Constructor(DOMString d), Exposed= Window,Worker]2182 Constructor(DOMString d), Exposed=(Window,Worker)] 2185 2183 interface Path2D { 2186 2184 void addPath(Path2D path, optional SVGMatrix? transformation = null); … … 2310 2308 }; 2311 2309 2310 enum ScrollRestoration { "auto", "manual" }; 2312 2311 interface History { 2312 2313 2313 readonly attribute long length; 2314 attribute ScrollRestoration scrollRestoration; 2314 2315 readonly attribute any state; 2315 2316 void go(optional long delta); … … 2338 2339 }; 2339 2340 2340 [Constructor(DOMString type, optional PopStateEventInit eventInitDict), Exposed= Window,Worker]2341 [Constructor(DOMString type, optional PopStateEventInit eventInitDict), Exposed=(Window,Worker)] 2341 2342 interface PopStateEvent : Event { 2342 2343 readonly attribute any state; … … 2347 2348 }; 2348 2349 2349 [Constructor(DOMString type, optional HashChangeEventInit eventInitDict), Exposed= Window,Worker]2350 [Constructor(DOMString type, optional HashChangeEventInit eventInitDict), Exposed=(Window,Worker)] 2350 2351 interface HashChangeEvent : Event { 2351 2352 readonly attribute DOMString oldURL; … … 2358 2359 }; 2359 2360 2360 [Constructor(DOMString type, optional PageTransitionEventInit eventInitDict), Exposed= Window,Worker]2361 [Constructor(DOMString type, optional PageTransitionEventInit eventInitDict), Exposed=(Window,Worker)] 2361 2362 interface PageTransitionEvent : Event { 2362 2363 readonly attribute boolean persisted; … … 2399 2400 }; 2400 2401 2401 [NoInterfaceObject, Exposed= Window,Worker]2402 [NoInterfaceObject, Exposed=(Window,Worker)] 2402 2403 interface NavigatorOnLine { 2403 2404 readonly attribute boolean onLine; 2404 2405 }; 2405 2406 2406 [Constructor(DOMString type, optional ErrorEventInit eventInitDict), Exposed= Window,Worker]2407 [Constructor(DOMString type, optional ErrorEventInit eventInitDict), Exposed=(Window,Worker)] 2407 2408 interface ErrorEvent : Event { 2408 2409 readonly attribute DOMString message; … … 2517 2518 }; 2518 2519 2519 [NoInterfaceObject, Exposed= Window,Worker]2520 [NoInterfaceObject, Exposed=(Window,Worker)] 2520 2521 interface WindowBase64 { 2521 2522 DOMString btoa(DOMString btoa); … … 2524 2525 Window implements WindowBase64; 2525 2526 2526 [NoInterfaceObject, Exposed= Window,Worker]2527 [NoInterfaceObject, Exposed=(Window,Worker)] 2527 2528 interface WindowTimers { 2528 2529 long setTimeout(Function handler, optional long timeout = 0, any... arguments); … … 2551 2552 Navigator implements NavigatorPlugins; 2552 2553 2553 [NoInterfaceObject, Exposed= Window,Worker]2554 [NoInterfaceObject, Exposed=(Window,Worker)] 2554 2555 interface NavigatorID { 2555 2556 readonly attribute DOMString appCodeName; // constant "Mozilla" … … 2562 2563 }; 2563 2564 2564 [NoInterfaceObject, Exposed= Window,Worker]2565 [NoInterfaceObject, Exposed=(Window,Worker)] 2565 2566 interface NavigatorLanguage { 2566 2567 readonly attribute DOMString? language; … … 2626 2627 }; 2627 2628 2628 [Exposed= Window,Worker]2629 [Exposed=(Window,Worker)] 2629 2630 interface ImageBitmap { 2630 2631 readonly attribute unsigned long width; … … 2640 2641 ImageBitmap) ImageBitmapSource; 2641 2642 2642 [NoInterfaceObject, Exposed= Window,Worker]2643 [NoInterfaceObject, Exposed=(Window,Worker)] 2643 2644 interface ImageBitmapFactories { 2644 2645 Promise createImageBitmap(ImageBitmapSource image, optional long sx, long sy, long sw, long sh); … … 2647 2648 WorkerGlobalScope implements ImageBitmapFactories; 2648 2649 2649 [Constructor(DOMString type, optional MessageEventInit eventInitDict), Exposed= Window,Worker]2650 [Constructor(DOMString type, optional MessageEventInit eventInitDict), Exposed=(Window,Worker)] 2650 2651 interface MessageEvent : Event { 2651 2652 readonly attribute any data; … … 2666 2667 }; 2667 2668 2668 [Constructor(DOMString url, optional EventSourceInit eventSourceInitDict), Exposed= Window,Worker]2669 [Constructor(DOMString url, optional EventSourceInit eventSourceInitDict), Exposed=(Window,Worker)] 2669 2670 interface EventSource : EventTarget { 2670 2671 readonly attribute DOMString url; … … 2689 2690 2690 2691 enum BinaryType { "blob", "arraybuffer" }; 2691 [Constructor(DOMString url, optional (DOMString or DOMString[]) protocols), Exposed= Window,Worker]2692 [Constructor(DOMString url, optional (DOMString or DOMString[]) protocols), Exposed=(Window,Worker)] 2692 2693 interface WebSocket : EventTarget { 2693 2694 readonly attribute DOMString url; … … 2702 2703 2703 2704 // networking 2704 2705 2706 2705 attribute EventHandler onopen; 2706 attribute EventHandler onerror; 2707 attribute EventHandler onclose; 2707 2708 readonly attribute DOMString extensions; 2708 2709 readonly attribute DOMString protocol; 2709 void close([Clamp] optional unsigned short code, optional DOMString reason);2710 void close([Clamp] optional unsigned short code, optional USVString reason); 2710 2711 2711 2712 // messaging 2712 2713 2714 void send( DOMString data);2713 attribute EventHandler onmessage; 2714 attribute BinaryType binaryType; 2715 void send(USVString data); 2715 2716 void send(Blob data); 2716 2717 void send(ArrayBuffer data); … … 2718 2719 }; 2719 2720 2720 [Constructor(DOMString type, optional CloseEventInit eventInitDict), Exposed= Window,Worker]2721 [Constructor(DOMString type, optional CloseEventInit eventInitDict), Exposed=(Window,Worker)] 2721 2722 interface CloseEvent : Event { 2722 2723 readonly attribute boolean wasClean; … … 2731 2732 }; 2732 2733 2733 [Constructor, Exposed= Window,Worker]2734 [Constructor, Exposed=(Window,Worker)] 2734 2735 interface MessageChannel { 2735 2736 readonly attribute MessagePort port1; … … 2737 2738 }; 2738 2739 2739 [Exposed= Window,Worker]2740 [Exposed=(Window,Worker)] 2740 2741 interface MessagePort : EventTarget { 2741 2742 void postMessage(any message, optional sequence<Transferable> transfer); … … 2748 2749 // MessagePort implements Transferable; 2749 2750 2750 [Constructor, Exposed= Window,Worker]2751 [Constructor, Exposed=(Window,Worker)] 2751 2752 interface PortCollection { 2752 2753 void add(MessagePort port); … … 2758 2759 callback PortCollectionCallback = void (MessagePort port); 2759 2760 2760 [Constructor(DOMString channel), Exposed= Window,Worker]2761 [Constructor(DOMString channel), Exposed=(Window,Worker)] 2761 2762 interface BroadcastChannel : EventTarget { 2762 2763 readonly attribute DOMString name; … … 2793 2794 }; 2794 2795 2795 [NoInterfaceObject, Exposed= Window,Worker]2796 [NoInterfaceObject, Exposed=(Window,Worker)] 2796 2797 interface AbstractWorker { 2797 2798 attribute EventHandler onerror; 2798 2799 }; 2799 2800 2800 [Constructor(DOMString scriptURL), Exposed= Window,Worker]2801 [Constructor(DOMString scriptURL), Exposed=(Window,Worker)] 2801 2802 interface Worker : EventTarget { 2802 2803 void terminate(); … … 2807 2808 Worker implements AbstractWorker; 2808 2809 2809 [Constructor(DOMString scriptURL, optional DOMString name), Exposed= Window,Worker]2810 [Constructor(DOMString scriptURL, optional DOMString name), Exposed=(Window,Worker)] 2810 2811 interface SharedWorker : EventTarget { 2811 2812 readonly attribute MessagePort port; … … 3389 3390 MediaStreamEvent: [], 3390 3391 ErrorEvent: [], 3392 WebSocket: ['new WebSocket("ws://foo")'], 3393 CloseEvent: ['new CloseEvent("close")'], 3391 3394 AbstractWorker: [], 3392 3395 Worker: [], -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/document-metadata/styling/w3c-import.log
r196090 r196091 16 16 ------------------------------------------------------------------------ 17 17 List of files: 18 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/ forms/form-submission-0/contains.json18 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/document-metadata/styling/LinkStyle.html -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-area-element/support/w3c-import.log
r196090 r196091 16 16 ------------------------------------------------------------------------ 17 17 List of files: 18 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-area-element/ area-stringifier.html18 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-area-element/support/hit-test.js -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-area-element/w3c-import.log
r191379 r196091 16 16 ------------------------------------------------------------------------ 17 17 List of files: 18 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-area-element/area-coords.html 19 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-area-element/area-processing.html 20 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-area-element/area-shape.html 18 21 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-area-element/area-stringifier.html -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-canvas-element/toDataURL.nocontext.html
r189476 r196091 19 19 var t = async_test("toDataURL works before any context has been got"); 20 20 _addTest(function(canvas, ctx) { 21 22 var canvas2 = document.createElement('canvas'); 23 var data = canvas2.toDataURL(); 24 assert_regexp_match(data, /^data:image\/png[;,]/); 25 26 21 var no_context_data = canvas.toDataURL(); 22 var ctx = canvas.getContext('2d'); 23 ctx.rect(0, 0, 100, 50); 24 ctx.fillStyle = "rgba(0, 0, 0, 0)"; 25 ctx.fill(); 26 var data = canvas.toDataURL(); 27 assert_equals(no_context_data, data); 27 28 }); 28 29 </script> -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/support/w3c-import.log
r196090 r196091 16 16 ------------------------------------------------------------------------ 17 17 List of files: 18 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-area-element/area-stringifier.html 18 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/support/blank.htm 19 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/support/sandbox_allow_script.html -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/w3c-import.log
r191379 r196091 17 17 List of files: 18 18 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/contains.json 19 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/url-encoded.html -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/textfieldselection/w3c-import.log
r191379 r196091 17 17 List of files: 18 18 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/textfieldselection/original-id.json 19 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/textfieldselection/select-event.html 19 20 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/textfieldselection/selection-not-application-textarea.html 20 21 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/textfieldselection/selection-not-application.html 21 22 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/textfieldselection/selection.html 23 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/textfieldselection/textfieldselection-setRangeText.html 22 24 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-button-element/button-events-expected.txt
r189476 r196091 1 1 2 FAIL The submit event must be fired when click a button in submit status assert_true: The isTrusted attribute of the submit event shou d be true. expected true got undefined3 FAIL The reset event must be fired when click a button in reset status assert_true: The isTrusted attribute of the reset event shou d be true. expected true got undefined2 FAIL The submit event must be fired when click a button in submit status assert_true: The isTrusted attribute of the submit event should be true. expected true got undefined 3 FAIL The reset event must be fired when click a button in reset status assert_true: The isTrusted attribute of the reset event should be true. expected true got undefined 4 4 FAIL The show event must be fired when click a button in menu status assert_equals: The button type should be 'menu'. expected "menu" but got "submit" 5 5 -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-button-element/button-events.html
r189476 r196091 24 24 document.forms.fm1.onsubmit = t1.step_func(function (evt) { 25 25 evt.preventDefault(); 26 assert_true(evt.isTrusted, "The isTrusted attribute of the submit event shou d be true.");27 assert_true(evt.bubbles, "The bubbles attribute of the submit event shou d be true.");28 assert_true(evt.cancelable, "The cancelable attribute of the submit event shou d be true.");26 assert_true(evt.isTrusted, "The isTrusted attribute of the submit event should be true."); 27 assert_true(evt.bubbles, "The bubbles attribute of the submit event should be true."); 28 assert_true(evt.cancelable, "The cancelable attribute of the submit event should be true."); 29 29 assert_true(evt instanceof Event, "The submit event is an instance of Event interface."); 30 30 t1.done(); … … 32 32 33 33 document.forms.fm1.onreset = t2.step_func(function (evt) { 34 assert_true(evt.isTrusted, "The isTrusted attribute of the reset event shou d be true.");35 assert_true(evt.bubbles, "The bubbles attribute of the reset event shou d be true.");36 assert_true(evt.cancelable, "The cancelable attribute of the reset event shou d be true.");34 assert_true(evt.isTrusted, "The isTrusted attribute of the reset event should be true."); 35 assert_true(evt.bubbles, "The bubbles attribute of the reset event should be true."); 36 assert_true(evt.cancelable, "The cancelable attribute of the reset event should be true."); 37 37 assert_true(evt instanceof Event, "The reset event is an instance of Event interface."); 38 38 t2.done(); … … 40 40 41 41 document.getElementById("menu").onshow = t3.step_func(function (evt) { 42 assert_true(evt.isTrusted, "The isTrusted attribute of the show event shou d be true.");42 assert_true(evt.isTrusted, "The isTrusted attribute of the show event should be true."); 43 43 assert_equals(evt.relatedTarget, menu_btn, "The relatedTarget attribute should be initialized to the related button element."); 44 assert_true(evt.cancelable, "The cancelable attribute of the show event shou d be true.");44 assert_true(evt.cancelable, "The cancelable attribute of the show event should be true."); 45 45 assert_true(evt instanceof RelatedEvent, "The show event is an instance of RelatedEvent interface."); 46 46 t3.done(); -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-button-element/w3c-import.log
r191379 r196091 16 16 ------------------------------------------------------------------------ 17 17 List of files: 18 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-button-element/button-activate-frame.html 19 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-button-element/button-activate.html 18 20 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-button-element/button-events.html 19 21 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-button-element/button-validation.html -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-form-element/w3c-import.log
r191379 r196091 21 21 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-form-element/form-elements-nameditem-01.html 22 22 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-form-element/form-elements-nameditem-02.html 23 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-form-element/form-elements-sameobject.html 23 24 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-form-element/form-nameditem.html -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/checkbox-expected.txt
r189476 r196091 1 1 2 2 3 FAIL click on mutable checkbox fires the input and change events assert_true: event should be trusted expected true got undefined3 FAIL click on mutable checkbox fires a click event, then an input event, then a change event assert_true: change event should fire after click event expected true got false 4 4 PASS click on non-mutable checkbox doesn't fire the input or change event 5 5 PASS pre-activation steps on unchecked checkbox 6 6 PASS pre-activation steps on checked checkbox 7 FAIL canceled activation steps on unchecked checkbox assert_false: expected false got true 8 FAIL canceled activation steps on unchecked checkbox (indeterminate=true in onclick) assert_false: expected false got true 7 PASS canceled activation steps on unchecked checkbox 8 PASS canceled activation steps on unchecked checkbox (indeterminate=true in onclick) 9 9 -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/checkbox.html
r189476 r196091 3 3 <title>input type checkbox</title> 4 4 <link rel="author" title="Denis Ah-Kang" href="mailto:denis@w3.org"> 5 <link rel=help href="https://html.spec.whatwg.org/multipage/#checkbox-state-(type=checkbox)"> 5 <link rel="help" href="https://html.spec.whatwg.org/multipage/#checkbox-state-(type=checkbox)"> 6 <link rel="help" href="https://html.spec.whatwg.org/multipage/#run-synthetic-click-activation-steps"> 6 7 <script src="/resources/testharness.js"></script> 7 8 <script src="/resources/testharnessreport.js"></script> … … 20 21 checkbox5 = document.getElementById('checkbox5'), 21 22 checkbox6 = document.getElementById('checkbox6'), 22 c1_input_fired = false, c1_change_fired = false, 23 t1 = async_test("click on mutable checkbox fires the input and change events"), 23 c1_click_fired = false, 24 c1_input_fired = false, 25 c1_change_fired = false, 26 t1 = async_test("click on mutable checkbox fires a click event, then an input event, then a change event"), 24 27 t2 = async_test("click on non-mutable checkbox doesn't fire the input or change event"), 25 28 t3 = async_test("pre-activation steps on unchecked checkbox"), … … 28 31 t6 = async_test("canceled activation steps on unchecked checkbox (indeterminate=true in onclick)"); 29 32 30 checkbox1.oninput= t1.step_func(function(e) { 33 checkbox1.onclick = t1.step_func(function () { 34 c1_click_fired = true; 35 assert_false(c1_input_fired, "click event should fire before input event"); 36 assert_false(c1_change_fired, "click event should fire before change event"); 37 }); 38 checkbox1.oninput = t1.step_func(function(e) { 31 39 c1_input_fired = true; 40 assert_true(c1_click_fired, "input event should fire after click event"); 41 assert_false(c1_change_fired, "input event should fire before change event"); 32 42 assert_true(e.bubbles, "event should bubble"); 33 43 assert_true(e.isTrusted, "event should be trusted"); 34 assert_false(e.cancelable, "event shou d not be cancelable");44 assert_false(e.cancelable, "event should not be cancelable"); 35 45 assert_true(checkbox1.checked, "checkbox is checked"); 36 46 assert_false(checkbox1.indeterminate, "checkbox is not indeterminate"); … … 39 49 checkbox1.onchange = t1.step_func(function(e) { 40 50 c1_change_fired = true; 51 assert_true(c1_click_fired, "change event should fire after click event"); 52 assert_true(c1_input_fired, "change event should fire after input event"); 41 53 assert_true(e.bubbles, "event should bubble") 42 54 assert_true(e.isTrusted, "event should be trusted"); 43 assert_false(e.cancelable, "event shou d not be cancelable");55 assert_false(e.cancelable, "event should not be cancelable"); 44 56 assert_true(checkbox1.checked, "checkbox is checked"); 45 57 assert_false(checkbox1.indeterminate, "checkbox is not indeterminate"); … … 84 96 checkbox5.onclick = t5.step_func(function(e) { 85 97 e.preventDefault(); 86 assert_false(checkbox5.checked); 98 /* 99 The prevention of the click doesn't have an effect until after all the 100 click event handlers have been run. 101 */ 102 assert_true(checkbox5.checked); 87 103 assert_false(checkbox5.indeterminate); 88 t5.done(); 104 window.setTimeout(t5.step_func(function(e) { 105 /* 106 The click event has finished being dispatched, so the checkedness and 107 determinateness have been toggled back by now because the event 108 was preventDefault-ed. 109 */ 110 assert_false(checkbox5.checked); 111 assert_false(checkbox5.indeterminate); 112 t5.done(); 113 }), 0); 89 114 }); 90 115 … … 98 123 checkbox6.indeterminate = true; 99 124 e.preventDefault(); 100 assert_false(checkbox6.checked); 101 assert_false(checkbox6.indeterminate); 102 t6.done(); 125 /* 126 The prevention of the click doesn't have an effect until after all the 127 click event handlers have been run. 128 */ 129 assert_true(checkbox6.checked); 130 assert_true(checkbox6.indeterminate); 131 window.setTimeout(t6.step_func(function(e) { 132 /* 133 The click event has finished being dispatched, so the checkedness and 134 determinateness have been toggled back by now because the event 135 was preventDefault-ed. 136 */ 137 assert_false(checkbox6.checked); 138 assert_false(checkbox6.indeterminate); 139 t6.done(); 140 }), 0); 103 141 }); 104 142 -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/radio-expected.txt
r189476 r196091 1 1 2 2 3 FAIL click on mutable radio fires the input event assert_true: expected true got false 4 FAIL click on mutable radio fires the change event assert_true: event should be trusted expected true got undefined 3 FAIL click on mutable radio fires click event, then input event, then change event Can't find variable: click_fired 5 4 PASS click on non-mutable radio doesn't fire the input event 6 5 PASS click on non-mutable radio doesn't fire the change event 7 FAIL canceled activation steps on unchecked radio assert_false: expected false got true 6 PASS canceled activation steps on unchecked radio 8 7 PASS only one control of a radio button group can have its checkedness set to true 9 8 FAIL radio inputs with name attributes groüp2 and groÜp2 belong to the same radio button group assert_false: expected false got true -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/radio.html
r189476 r196091 16 16 <input type=radio id=radio6 disabled> 17 17 18 <input type=radio id=radio71 checked>19 <input type=radio id=radio72>18 <input type=radio name="group5" id=radio71 checked> 19 <input type=radio name="group5" id=radio72> 20 20 21 21 <input type=radio name=group3 id=radio8 checked> … … 38 38 radio10 = document.getElementById('radio10'), 39 39 radio11 = document.getElementById('radio11'), 40 t1 = async_test("click on mutable radio fires the input event"), 41 t2 = async_test("click on mutable radio fires the change event"), 40 t1 = async_test("click on mutable radio fires click event, then input event, then change event"), 42 41 t3 = async_test("click on non-mutable radio doesn't fire the input event"), 43 42 t4 = async_test("click on non-mutable radio doesn't fire the change event"), … … 81 80 }, "changing the name of a radio input element and setting its checkedness to true makes all the other elements' checkedness in the same radio button group be set to false"); 82 81 83 radio5.oninput= t1.step_func(function(e) { 84 input_fired = true; 85 assert_true(e.bubbles, "event should bubble") 86 assert_true(e.isTrusted, "event should be trusted"); 87 assert_false(e.cancelable, "event shoud not be cancelable"); 82 radio5.onclick = t1.step_func(function(e) { 83 click_fired = true; 84 assert_false(input_fired, "click event should fire before input event"); 85 assert_false(change_fired, "click event should fire before change event"); 88 86 }); 89 87 90 radio5.onchange = t2.step_func(function(e) { 88 radio5.oninput = t1.step_func(function(e) { 89 input_fired = true; 90 assert_true(click_fired, "input event should fire after click event"); 91 assert_false(change_fired, "input event should fire before change event"); 92 assert_true(e.bubbles, "input event should bubble") 93 assert_true(e.isTrusted, "input event should be trusted"); 94 assert_false(e.cancelable, "input event should not be cancelable"); 95 }); 96 97 radio5.onchange = t1.step_func(function(e) { 91 98 change_fired = true; 92 assert_true(e.bubbles, "event should bubble") 93 assert_true(e.isTrusted, "event should be trusted"); 94 assert_false(e.cancelable, "event shoud not be cancelable"); 99 assert_true(click_fired, "change event should fire after click event"); 100 assert_true(input_fired, "change event should fire after input event"); 101 assert_true(e.bubbles, "change event should bubble") 102 assert_true(e.isTrusted, "change event should be trusted"); 103 assert_false(e.cancelable, "change event should not be cancelable"); 95 104 }); 96 105 … … 109 118 }); 110 119 111 t2.step(function() {112 assert_true(change_fired);113 t2.done();114 })115 116 120 t3.step(function(){ 117 121 radio6.click(); … … 121 125 122 126 radio72.onclick = t5.step_func_done(function(e){ 123 assert_false(radio71.checked );124 assert_true(radio72.checked );127 assert_false(radio71.checked, "click on radio should uncheck other radio in same group"); 128 assert_true(radio72.checked, "click on radio should check that radio"); 125 129 e.preventDefault(); 126 assert_false(radio71.checked); 127 assert_true(radio72.checked); 130 // The cancelation of the click doesn't have an effect until after all the click event handlers have been run. 131 assert_false(radio71.checked, "radio remains unchecked immediately after click event on other radio in same group is canceled"); 132 assert_true(radio72.checked, "clicked radio remains checked immediately after click event is canceled"); 128 133 }); 129 134 130 135 t5.step(function(){ 131 assert_true(radio71.checked );132 assert_false(radio72.checked );136 assert_true(radio71.checked, "initially checked radio should be checked"); 137 assert_false(radio72.checked, "other radios in same group as initially-checked radio should be unchecked"); 133 138 radio72.click(); 134 assert_true(radio71.checked); 135 assert_false(radio72.checked); 139 // Now that the click event has been fully dispatched, its cancelation has taken effect. 140 assert_true(radio71.checked, "canceled click event on radio should leave the previously-checked radio checked"); 141 assert_false(radio72.checked, "canceled click event on previously-unchecked radio should leave that radio unchecked"); 136 142 }); 137 143 </script> -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/w3c-import.log
r191379 r196091 33 33 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/input-type-button.html 34 34 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/input-type-checkbox.html 35 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/maxlength.html 35 36 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/month.html 36 37 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/number.html -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-option-element/w3c-import.log
r191379 r196091 18 18 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-option-element/option-label-value.js 19 19 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-option-element/option-label.html 20 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-option-element/option-selected.html 20 21 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-option-element/option-text-backslash.html 21 22 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-option-element/option-text-label.html -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-select-element/w3c-import.log
r191379 r196091 18 18 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-select-element/common-HTMLOptionsCollection-namedItem.html 19 19 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html 20 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-select-element/select-ask-for-reset.html 20 21 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-select-element/select-named-getter.html 21 22 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-select-element/select-remove.html -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-text-expected.txt
r190703 r196091 5 5 FAIL Setter (null) assert_equals: expected "null" but got "" 6 6 PASS Setter (undefined) 7 FAIL Setter (text node reuse) assert_not_equals: got disallowed value Text node "two" 7 8 -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-text.html
r189476 r196091 16 16 .appendChild(document.createTextNode("ELEMENT")) 17 17 }) 18 18 19 test(function() { 19 20 assert_equals(script.text, " TEXT ") 20 21 assert_equals(script.textContent, " TEXT ELEMENT") 21 22 }, "Getter") 23 22 24 test(function() { 23 25 script.text = " text " … … 29 31 assert_array_equals(script.childNodes, [script.firstChild]) 30 32 }, "Setter (non-empty string)") 33 31 34 test(function() { 32 35 script.text = "" … … 35 38 assert_equals(script.firstChild, null) 36 39 }, "Setter (empty string)") 40 37 41 test(function() { 38 42 script.text = null … … 43 47 assert_equals(script.firstChild, script.lastChild) 44 48 }, "Setter (null)") 49 45 50 test(function() { 46 51 script.text = undefined … … 51 56 assert_equals(script.firstChild, script.lastChild) 52 57 }, "Setter (undefined)") 58 59 test(function() { 60 var s = document.createElement("script"); 61 var text = document.createTextNode("one"); 62 s.appendChild(text); 63 64 assert_equals(s.firstChild, text); 65 assert_equals(text.nodeValue, "one"); 66 67 s.text = "two"; 68 assert_not_equals(s.firstChild, text); 69 assert_equals(text.nodeValue, "one"); 70 assert_equals(s.firstChild.nodeValue, "two"); 71 }, "Setter (text node reuse)") 53 72 </script> -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/tabular-data/the-tbody-element/w3c-import.log
r191379 r196091 18 18 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/tabular-data/the-tbody-element/deleteRow.html 19 19 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/tabular-data/the-tbody-element/insertRow.html 20 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/tabular-data/the-tbody-element/rows.html -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/tabular-data/the-tfoot-element/w3c-import.log
r196090 r196091 16 16 ------------------------------------------------------------------------ 17 17 List of files: 18 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/ forms/form-submission-0/contains.json18 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/tabular-data/the-tfoot-element/rows.html -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/tabular-data/the-thead-element/w3c-import.log
r196090 r196091 16 16 ------------------------------------------------------------------------ 17 17 List of files: 18 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/ forms/form-submission-0/contains.json18 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/tabular-data/the-thead-element/rows.html -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/tabular-data/the-tr-element/w3c-import.log
r191379 r196091 16 16 ------------------------------------------------------------------------ 17 17 List of files: 18 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/tabular-data/the-tr-element/cells.html 18 19 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/tabular-data/the-tr-element/deleteCell.html 19 20 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/tabular-data/the-tr-element/insertCell.html
Note: See TracChangeset
for help on using the changeset viewer.