Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement HTMLElement.dataset (fixes #2974).
- Loading branch information
1 parent
285a06f
commit 57c520d
Showing
15 changed files
with
117 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
tests/wpt/metadata/html/dom/elements/global-attributes/custom-attrs.html.ini
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
tests/wpt/metadata/html/dom/elements/global-attributes/data_unicode_attr.html.ini
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 1 addition & 6 deletions
7
tests/wpt/metadata/html/dom/elements/global-attributes/dataset-enumeration.html.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,3 @@ | ||
[dataset-enumeration.html] | ||
type: testharness | ||
[A dataset should be enumeratable.] | ||
expected: FAIL | ||
|
||
[Only attributes who qualify as dataset properties should be enumeratable in the dataset.] | ||
expected: FAIL | ||
|
||
expected: CRASH |
31 changes: 1 addition & 30 deletions
31
tests/wpt/metadata/html/dom/elements/global-attributes/dataset-get.html.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,3 @@ | ||
[dataset-get.html] | ||
type: testharness | ||
[Getting element.dataset[\'foo\'\] should return the value of element.getAttribute(\'data-foo\')\'] | ||
expected: FAIL | ||
[Getting element.dataset[\'fooBar\'\] should return the value of element.getAttribute(\'data-foo-bar\')\'] | ||
expected: FAIL | ||
[Getting element.dataset[\'-\'\] should return the value of element.getAttribute(\'data--\')\'] | ||
expected: FAIL | ||
[Getting element.dataset[\'Foo\'\] should return the value of element.getAttribute(\'data--foo\')\'] | ||
expected: FAIL | ||
[Getting element.dataset[\'-Foo\'\] should return the value of element.getAttribute(\'data---foo\')\'] | ||
expected: FAIL | ||
[Getting element.dataset[\'foo\'\] should return the value of element.getAttribute(\'data-Foo\')\'] | ||
expected: FAIL | ||
[Getting element.dataset[\'\'\] should return the value of element.getAttribute(\'data-\')\'] | ||
expected: FAIL | ||
[Getting element.dataset[\'\xc3\xa0\'\] should return the value of element.getAttribute(\'data-\xc3\xa0\')\'] | ||
expected: FAIL | ||
[Getting element.dataset[\'toString\'\] should return the value of element.getAttribute(\'data-to-string\')\'] | ||
expected: FAIL | ||
[Tests that an attribute named dataFoo does not make an entry in the dataset DOMStringMap.] | ||
expected: FAIL | ||
expected: CRASH |
8 changes: 0 additions & 8 deletions
8
tests/wpt/metadata/html/dom/elements/global-attributes/dataset-prototype.html.ini
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
tests/wpt/metadata/html/dom/elements/global-attributes/dataset-set.html.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,5 @@ | ||
[dataset-set.html] | ||
type: testharness | ||
[Setting element.dataset[\'foo\'\] should also change the value of element.getAttribute(\'data-foo\')\'] | ||
expected: FAIL | ||
[Setting element.dataset[\'fooBar\'\] should also change the value of element.getAttribute(\'data-foo-bar\')\'] | ||
expected: FAIL | ||
[Setting element.dataset[\'-\'\] should also change the value of element.getAttribute(\'data--\')\'] | ||
expected: FAIL | ||
[Setting element.dataset[\'Foo\'\] should also change the value of element.getAttribute(\'data--foo\')\'] | ||
expected: FAIL | ||
[Setting element.dataset[\'-Foo\'\] should also change the value of element.getAttribute(\'data---foo\')\'] | ||
expected: FAIL | ||
[Setting element.dataset[\'\'\] should also change the value of element.getAttribute(\'data-\')\'] | ||
expected: FAIL | ||
[Setting element.dataset[\'\xc3\xa0\'\] should also change the value of element.getAttribute(\'data-\xc3\xa0\')\'] | ||
expected: FAIL | ||
[Setting element.dataset[\'-foo\'\] should throw a SYNTAX_ERR\'] | ||
expected: FAIL | ||
[Setting element.dataset[\'foo \'\] should throw an INVALID_CHARACTER_ERR\'] | ||
expected: FAIL | ||
[Setting element.dataset[\'foo\xef\xa4\x80\'\] should throw an INVALID_CHARACTER_ERR\'] | ||
expected: FAIL | ||
14 changes: 0 additions & 14 deletions
14
tests/wpt/metadata/html/dom/elements/global-attributes/dataset.html.ini
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 33 additions & 1 deletion
34
...data/html/semantics/embedded-content/the-img-element/current-pixel-density/basic.html.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,35 @@ | ||
[basic.html] | ||
type: testharness | ||
expected: TIMEOUT | ||
[<img src="/images/green-256x256.png" data-expect="256">] | ||
expected: FAIL | ||
|
||
[<img srcset="/images/green-256x256.png 1x" data-expect="256">] | ||
expected: FAIL | ||
|
||
[<img srcset="/images/green-256x256.png 1.6x" data-expect="160">] | ||
expected: FAIL | ||
|
||
[<img srcset="/images/green-256x256.png 2x" data-expect="128">] | ||
expected: FAIL | ||
|
||
[<img srcset="/images/green-256x256.png 10000x" data-expect="0">] | ||
expected: FAIL | ||
|
||
[<img srcset="/images/green-256x256.png 9e99999999999999999999999x" data-expect="0">] | ||
expected: FAIL | ||
|
||
[<img srcset="/images/green-256x256.png 256w" sizes="256px" data-expect="256">] | ||
expected: FAIL | ||
|
||
[<img srcset="/images/green-256x256.png 512w" sizes="256px" data-expect="128">] | ||
expected: FAIL | ||
|
||
[<img srcset="/images/green-256x256.png 256w" sizes="512px" data-expect="512">] | ||
expected: FAIL | ||
|
||
[<img srcset="/images/green-256x256.png 256w" sizes="1px" data-expect="1">] | ||
expected: FAIL | ||
|
||
[<img srcset="/images/green-256x256.png 256w" sizes="0px" data-expect="0">] | ||
expected: FAIL | ||
|