From 8701a4495b3d5fcf361864505298cbea588efd3d Mon Sep 17 00:00:00 2001 From: Martin Broesamle Date: Fri, 10 Jun 2016 09:39:11 +0200 Subject: [PATCH] Tests for scroll_area on body element in quirks mode. see #10947 Node::scroll_area should check if the element is potentially scrollable Three tests use `document.scrollingElement` which was not supported at the time of writing. They are, hence, expected to FAIL. The last expected FAIL should be fixed by #10947. Edited some comments, message texts. --- tests/wpt/metadata/MANIFEST.json | 6 + .../HTMLBody-ScrollArea_quirksmode.html.ini | 9 ++ .../HTMLBody-ScrollArea_quirksmode.html | 143 ++++++++++++++++++ 3 files changed, 158 insertions(+) create mode 100644 tests/wpt/metadata/cssom-view/HTMLBody-ScrollArea_quirksmode.html.ini create mode 100644 tests/wpt/web-platform-tests/cssom-view/HTMLBody-ScrollArea_quirksmode.html diff --git a/tests/wpt/metadata/MANIFEST.json b/tests/wpt/metadata/MANIFEST.json index b97ed7da68b..4652bb8d492 100644 --- a/tests/wpt/metadata/MANIFEST.json +++ b/tests/wpt/metadata/MANIFEST.json @@ -36034,6 +36034,12 @@ "deleted_reftests": {}, "items": { "testharness": { + "cssom-view/HTMLBody-ScrollArea_quirksmode.html": [ + { + "path": "cssom-view/HTMLBody-ScrollArea_quirksmode.html", + "url": "/cssom-view/HTMLBody-ScrollArea_quirksmode.html" + } + ], "cssom-view/scrolling-no-browsing-context.html": [ { "path": "cssom-view/scrolling-no-browsing-context.html", diff --git a/tests/wpt/metadata/cssom-view/HTMLBody-ScrollArea_quirksmode.html.ini b/tests/wpt/metadata/cssom-view/HTMLBody-ScrollArea_quirksmode.html.ini new file mode 100644 index 00000000000..398c724bb94 --- /dev/null +++ b/tests/wpt/metadata/cssom-view/HTMLBody-ScrollArea_quirksmode.html.ini @@ -0,0 +1,9 @@ +[HTMLBody-ScrollArea_quirksmode.html] + [document.scrollingElement should be body element in quirks.] + expected: FAIL + [scrollingElement in quirks should be null when body is potentially scrollable.] + expected: FAIL + [scrollingElement in quirks should be body if any of document and body has a visible overflow.] + expected: FAIL + [When body potentially scrollable, document.body.scrollHeight changes when changing the height of the body content in quirks.] + expected: FAIL diff --git a/tests/wpt/web-platform-tests/cssom-view/HTMLBody-ScrollArea_quirksmode.html b/tests/wpt/web-platform-tests/cssom-view/HTMLBody-ScrollArea_quirksmode.html new file mode 100644 index 00000000000..46fd5010e76 --- /dev/null +++ b/tests/wpt/web-platform-tests/cssom-view/HTMLBody-ScrollArea_quirksmode.html @@ -0,0 +1,143 @@ + + + + + +
+ + +