Auto merge of #7122 - dzbarsky:cssom, r=jdm

Enable CSSOM wpt tests

We don't support a lot of these features but this did expose a crash(es?)

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7122)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-08-10 21:32:55 -06:00
commit 166bb41baa
70 changed files with 703 additions and 0 deletions

View file

@ -23,3 +23,9 @@ skip: true
skip: true
[xhtml1print]
skip: true
[cssom-1_dev]
skip: false
[xhtml1]
skip: true
[xhtml1print]
skip: true

View file

@ -0,0 +1,5 @@
[MediaList.htm]
type: testharness
[MediaList]
expected: FAIL

View file

@ -0,0 +1,8 @@
[computed-style-001.htm]
type: testharness
[read_only]
expected: FAIL
[relative_property_values]
expected: FAIL

View file

@ -0,0 +1,14 @@
[css-style-declaration-modifications.htm]
type: testharness
[CSSStyleDeclaration_accessible]
expected: FAIL
[read]
expected: FAIL
[csstext_write]
expected: FAIL
[property_write]
expected: FAIL

View file

@ -0,0 +1,3 @@
[cssimportrule.htm]
type: testharness
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[cssom-cssText-serialize.htm]
type: testharness
[CSSStyleDeclaration cssText serializes declaration blocks.]
expected: FAIL

View file

@ -0,0 +1,50 @@
[cssom-setProperty-shorthand.htm]
type: testharness
[shorthand font can be set with setProperty]
expected: FAIL
[shorthand border-top can be set with setProperty]
expected: FAIL
[shorthand border-right can be set with setProperty]
expected: FAIL
[shorthand border-bottom can be set with setProperty]
expected: FAIL
[shorthand border-left can be set with setProperty]
expected: FAIL
[shorthand border can be set with setProperty]
expected: FAIL
[shorthand border-color can be set with setProperty]
expected: FAIL
[shorthand border-style can be set with setProperty]
expected: FAIL
[shorthand border-width can be set with setProperty]
expected: FAIL
[shorthand list-style can be set with setProperty]
expected: FAIL
[shorthand margin can be set with setProperty]
expected: FAIL
[shorthand outline can be set with setProperty]
expected: FAIL
[shorthand padding can be set with setProperty]
expected: FAIL
[shorthand background can be set with setProperty]
expected: FAIL
[shorthand overflow can be set with setProperty]
expected: FAIL
[shorthand border-radius can be set with setProperty]
expected: FAIL

View file

@ -0,0 +1,3 @@
[cssstyledeclaration-mutability.htm]
type: testharness
expected: CRASH

View file

@ -0,0 +1,3 @@
[cssstylerule.htm]
type: testharness
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[index-001.htm]
type: testharness
[margin_20px_20px]
expected: FAIL

View file

@ -0,0 +1,56 @@
[index-002.htm]
type: testharness
[border is expected to be border: 1px;]
expected: FAIL
[border is expected to be border: 1px solid red;]
expected: FAIL
[border is expected to be border: 1px red;]
expected: FAIL
[border is expected to be border: red;]
expected: FAIL
[border is expected to be border-width: 1px 2px 3px 4px;]
expected: FAIL
[border is expected to be border-width: 2px 1px 1px;]
expected: FAIL
[border is expected to be border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-width: 1px !important;]
expected: FAIL
[border is expected to be border-width: 1px; border-top-color: red;]
expected: FAIL
[border is expected to be border: dotted;]
expected: FAIL
[border is expected to be border-width: 1px;]
expected: FAIL
[overflow is expected to be overflow: scroll hidden;]
expected: FAIL
[overflow is expected to be overflow: scroll;]
expected: FAIL
[outline is expected to be outline: blue dotted 2px;]
expected: FAIL
[margin is expected to be margin: 1px 2px 3px 4px;]
expected: FAIL
[list is expected to be list-style: circle inside;]
expected: FAIL
[list is expected to be list-style-type: lower-alpha;]
expected: FAIL
[font-family is expected to be font-family: sans-serif; line-height: 2em; font-size: 3em; font-style: italic; font-weight: bold;]
expected: FAIL
[padding is expected to be padding: 1px 2px 3px 4px;]
expected: FAIL

View file

@ -0,0 +1,17 @@
[inline-style-001.htm]
type: testharness
[CSSStyleDeclaration_accessible]
expected: FAIL
[read]
expected: FAIL
[csstext_write]
expected: FAIL
[property_write]
expected: FAIL
[shorthand_properties]
expected: FAIL

View file

@ -0,0 +1,3 @@
[matchMedia.htm]
type: testharness
expected: TIMEOUT

View file

@ -0,0 +1,14 @@
[medialist-interfaces-001.htm]
type: testharness
[mediatest_medialist_serialize_element]
expected: FAIL
[mediatest_medialist_serialize_comma]
expected: FAIL
[mediatest_medialist_serialize_empty]
expected: FAIL
[mediatest_medialist_serialize_lexicographical]
expected: FAIL

View file

@ -0,0 +1,11 @@
[medialist-interfaces-002.htm]
type: testharness
[deleteMedium_called_without_argument]
expected: FAIL
[deleteMedium_removes_correct_medium]
expected: FAIL
[deleteMedium_no_matching_medium_to_remove]
expected: FAIL

View file

@ -0,0 +1,8 @@
[medialist-interfaces-003.htm]
type: testharness
[mediatest_mediaquery_serialize_1]
expected: FAIL
[mediatest_mediaquery_serialize_2]
expected: FAIL

View file

@ -0,0 +1,8 @@
[medialist-interfaces-004.htm]
type: testharness
[appendMedium_correctly_appends_medium_to_empty_MediaList]
expected: FAIL
[appendMedium_correctly_appends_medium_to_nonempty_MediaList]
expected: FAIL

View file

@ -0,0 +1,32 @@
[shape-outside-shape-arguments-000.htm]
type: testharness
[0-valued - inline]
expected: FAIL
[Font relative units - inline]
expected: FAIL
[View relative units - inline]
expected: FAIL
[Fixed units - inline]
expected: FAIL
[Percentage units - inline]
expected: FAIL
[0-valued - computed]
expected: FAIL
[Font relative units - computed]
expected: FAIL
[View relative units - computed]
expected: FAIL
[Fixed units - computed]
expected: FAIL
[Percentage units - computed]
expected: FAIL

View file

@ -0,0 +1,14 @@
[shape-outside-shape-arguments-001.htm]
type: testharness
[Positive number variations - inline]
expected: FAIL
[Negative number variations - inline]
expected: FAIL
[Positive number variations - computed]
expected: FAIL
[Negative number variations - computed]
expected: FAIL

View file

@ -0,0 +1,14 @@
[shape-outside-shape-notation-000.htm]
type: testharness
[No whitespace - inline]
expected: FAIL
[Extra whitespace - inline]
expected: FAIL
[No whitespace - computed]
expected: FAIL
[Extra whitespace - computed]
expected: FAIL

View file

@ -0,0 +1,8 @@
[style-sheet-interfaces-002.htm]
type: testharness
[add_rule]
expected: FAIL
[delete_rule]
expected: FAIL

View file

@ -0,0 +1,11 @@
[ttwf-cssom-doc-ext-load-count.htm]
type: testharness
[stylesheet.css should be loaded and styleSheets.length === 1]
expected: FAIL
[stylesheet.css should be unloaded and styleSheets.length === 0]
expected: FAIL
[stylesheet-1.css should be loaded and styleSheets.length === 1]
expected: FAIL

View file

@ -0,0 +1,20 @@
[ttwf-cssom-doc-ext-load-tree-order.htm]
type: testharness
[styleSheets.length must be 5]
expected: FAIL
[styleSheets item 0 title must be aaa]
expected: FAIL
[styleSheets item 1 title must be zebra]
expected: FAIL
[styleSheets item 0 title must be kilo]
expected: FAIL
[styleSheets item 0 title must be alpha]
expected: FAIL
[styleSheets item 0 title must be zebra]
expected: FAIL

View file

@ -0,0 +1,5 @@
[ttwf-cssom-document-extension.htm]
type: testharness
[CSSOM - Extensions to the Document Interface: StyleSheetList length is 0 when no sheets loaded]
expected: FAIL

View file

@ -0,0 +1,3 @@
[MediaList.xht]
type: testharness
expected: TIMEOUT

View file

@ -0,0 +1,8 @@
[computed-style-001.xht]
type: testharness
[read_only]
expected: FAIL
[relative_property_values]
expected: FAIL

View file

@ -0,0 +1,3 @@
[css-style-declaration-modifications.xht]
type: testharness
expected: TIMEOUT

View file

@ -0,0 +1,3 @@
[cssimportrule.xht]
type: testharness
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[cssom-cssText-serialize.xht]
type: testharness
[CSSStyleDeclaration cssText serializes declaration blocks.]
expected: FAIL

View file

@ -0,0 +1,3 @@
[cssom-setProperty-shorthand.xht]
type: testharness
expected: TIMEOUT

View file

@ -0,0 +1,3 @@
[cssstyledeclaration-mutability.xht]
type: testharness
expected: CRASH

View file

@ -0,0 +1,3 @@
[cssstylerule.xht]
type: testharness
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[index-001.xht]
type: testharness
[margin_20px_20px]
expected: FAIL

View file

@ -0,0 +1,3 @@
[index-002.xht]
type: testharness
expected: TIMEOUT

View file

@ -0,0 +1,3 @@
[inline-style-001.xht]
type: testharness
expected: TIMEOUT

View file

@ -0,0 +1,3 @@
[matchMedia.xht]
type: testharness
expected: TIMEOUT

View file

@ -0,0 +1,14 @@
[medialist-interfaces-001.xht]
type: testharness
[mediatest_medialist_serialize_element]
expected: FAIL
[mediatest_medialist_serialize_comma]
expected: FAIL
[mediatest_medialist_serialize_empty]
expected: FAIL
[mediatest_medialist_serialize_lexicographical]
expected: FAIL

View file

@ -0,0 +1,11 @@
[medialist-interfaces-002.xht]
type: testharness
[deleteMedium_called_without_argument]
expected: FAIL
[deleteMedium_removes_correct_medium]
expected: FAIL
[deleteMedium_no_matching_medium_to_remove]
expected: FAIL

View file

@ -0,0 +1,8 @@
[medialist-interfaces-003.xht]
type: testharness
[mediatest_mediaquery_serialize_1]
expected: FAIL
[mediatest_mediaquery_serialize_2]
expected: FAIL

View file

@ -0,0 +1,8 @@
[medialist-interfaces-004.xht]
type: testharness
[appendMedium_correctly_appends_medium_to_empty_MediaList]
expected: FAIL
[appendMedium_correctly_appends_medium_to_nonempty_MediaList]
expected: FAIL

View file

@ -0,0 +1,32 @@
[shape-outside-shape-arguments-000.xht]
type: testharness
[0-valued - inline]
expected: FAIL
[Font relative units - inline]
expected: FAIL
[View relative units - inline]
expected: FAIL
[Fixed units - inline]
expected: FAIL
[Percentage units - inline]
expected: FAIL
[0-valued - computed]
expected: FAIL
[Font relative units - computed]
expected: FAIL
[View relative units - computed]
expected: FAIL
[Fixed units - computed]
expected: FAIL
[Percentage units - computed]
expected: FAIL

View file

@ -0,0 +1,14 @@
[shape-outside-shape-arguments-001.xht]
type: testharness
[Positive number variations - inline]
expected: FAIL
[Negative number variations - inline]
expected: FAIL
[Positive number variations - computed]
expected: FAIL
[Negative number variations - computed]
expected: FAIL

View file

@ -0,0 +1,14 @@
[shape-outside-shape-notation-000.xht]
type: testharness
[No whitespace - inline]
expected: FAIL
[Extra whitespace - inline]
expected: FAIL
[No whitespace - computed]
expected: FAIL
[Extra whitespace - computed]
expected: FAIL

View file

@ -0,0 +1,8 @@
[style-sheet-interfaces-002.xht]
type: testharness
[add_rule]
expected: FAIL
[delete_rule]
expected: FAIL

View file

@ -0,0 +1,11 @@
[ttwf-cssom-doc-ext-load-count.xht]
type: testharness
[stylesheet.css should be loaded and styleSheets.length === 1]
expected: FAIL
[stylesheet.css should be unloaded and styleSheets.length === 0]
expected: FAIL
[stylesheet-1.css should be loaded and styleSheets.length === 1]
expected: FAIL

View file

@ -0,0 +1,20 @@
[ttwf-cssom-doc-ext-load-tree-order.xht]
type: testharness
[styleSheets.length must be 5]
expected: FAIL
[styleSheets item 0 title must be aaa]
expected: FAIL
[styleSheets item 1 title must be zebra]
expected: FAIL
[styleSheets item 0 title must be kilo]
expected: FAIL
[styleSheets item 0 title must be alpha]
expected: FAIL
[styleSheets item 0 title must be zebra]
expected: FAIL

View file

@ -0,0 +1,5 @@
[ttwf-cssom-document-extension.xht]
type: testharness
[CSSOM - Extensions to the Document Interface: StyleSheetList length is 0 when no sheets loaded]
expected: FAIL

View file

@ -0,0 +1,3 @@
[MediaList.xht]
type: testharness
expected: TIMEOUT

View file

@ -0,0 +1,8 @@
[computed-style-001.xht]
type: testharness
[read_only]
expected: FAIL
[relative_property_values]
expected: FAIL

View file

@ -0,0 +1,3 @@
[css-style-declaration-modifications.xht]
type: testharness
expected: TIMEOUT

View file

@ -0,0 +1,3 @@
[cssimportrule.xht]
type: testharness
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[cssom-cssText-serialize.xht]
type: testharness
[CSSStyleDeclaration cssText serializes declaration blocks.]
expected: FAIL

View file

@ -0,0 +1,3 @@
[cssom-setProperty-shorthand.xht]
type: testharness
expected: TIMEOUT

View file

@ -0,0 +1,3 @@
[cssstyledeclaration-mutability.xht]
type: testharness
expected: CRASH

View file

@ -0,0 +1,3 @@
[cssstylerule.xht]
type: testharness
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[index-001.xht]
type: testharness
[margin_20px_20px]
expected: FAIL

View file

@ -0,0 +1,3 @@
[index-002.xht]
type: testharness
expected: TIMEOUT

View file

@ -0,0 +1,3 @@
[inline-style-001.xht]
type: testharness
expected: TIMEOUT

View file

@ -0,0 +1,3 @@
[matchMedia.xht]
type: testharness
expected: TIMEOUT

View file

@ -0,0 +1,14 @@
[medialist-interfaces-001.xht]
type: testharness
[mediatest_medialist_serialize_element]
expected: FAIL
[mediatest_medialist_serialize_comma]
expected: FAIL
[mediatest_medialist_serialize_empty]
expected: FAIL
[mediatest_medialist_serialize_lexicographical]
expected: FAIL

View file

@ -0,0 +1,11 @@
[medialist-interfaces-002.xht]
type: testharness
[deleteMedium_called_without_argument]
expected: FAIL
[deleteMedium_removes_correct_medium]
expected: FAIL
[deleteMedium_no_matching_medium_to_remove]
expected: FAIL

View file

@ -0,0 +1,8 @@
[medialist-interfaces-003.xht]
type: testharness
[mediatest_mediaquery_serialize_1]
expected: FAIL
[mediatest_mediaquery_serialize_2]
expected: FAIL

View file

@ -0,0 +1,8 @@
[medialist-interfaces-004.xht]
type: testharness
[appendMedium_correctly_appends_medium_to_empty_MediaList]
expected: FAIL
[appendMedium_correctly_appends_medium_to_nonempty_MediaList]
expected: FAIL

View file

@ -0,0 +1,32 @@
[shape-outside-shape-arguments-000.xht]
type: testharness
[0-valued - inline]
expected: FAIL
[Font relative units - inline]
expected: FAIL
[View relative units - inline]
expected: FAIL
[Fixed units - inline]
expected: FAIL
[Percentage units - inline]
expected: FAIL
[0-valued - computed]
expected: FAIL
[Font relative units - computed]
expected: FAIL
[View relative units - computed]
expected: FAIL
[Fixed units - computed]
expected: FAIL
[Percentage units - computed]
expected: FAIL

View file

@ -0,0 +1,14 @@
[shape-outside-shape-arguments-001.xht]
type: testharness
[Positive number variations - inline]
expected: FAIL
[Negative number variations - inline]
expected: FAIL
[Positive number variations - computed]
expected: FAIL
[Negative number variations - computed]
expected: FAIL

View file

@ -0,0 +1,14 @@
[shape-outside-shape-notation-000.xht]
type: testharness
[No whitespace - inline]
expected: FAIL
[Extra whitespace - inline]
expected: FAIL
[No whitespace - computed]
expected: FAIL
[Extra whitespace - computed]
expected: FAIL

View file

@ -0,0 +1,8 @@
[style-sheet-interfaces-002.xht]
type: testharness
[add_rule]
expected: FAIL
[delete_rule]
expected: FAIL

View file

@ -0,0 +1,11 @@
[ttwf-cssom-doc-ext-load-count.xht]
type: testharness
[stylesheet.css should be loaded and styleSheets.length === 1]
expected: FAIL
[stylesheet.css should be unloaded and styleSheets.length === 0]
expected: FAIL
[stylesheet-1.css should be loaded and styleSheets.length === 1]
expected: FAIL

View file

@ -0,0 +1,20 @@
[ttwf-cssom-doc-ext-load-tree-order.xht]
type: testharness
[styleSheets.length must be 5]
expected: FAIL
[styleSheets item 0 title must be aaa]
expected: FAIL
[styleSheets item 1 title must be zebra]
expected: FAIL
[styleSheets item 0 title must be kilo]
expected: FAIL
[styleSheets item 0 title must be alpha]
expected: FAIL
[styleSheets item 0 title must be zebra]
expected: FAIL

View file

@ -0,0 +1,5 @@
[ttwf-cssom-document-extension.xht]
type: testharness
[CSSOM - Extensions to the Document Interface: StyleSheetList length is 0 when no sheets loaded]
expected: FAIL