New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make Document::DefaultView return a null value when there's no browsing context #11548
Merged
+66
−28
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.
Loading status checks…
Make Document::DefaultView return a null value when there's no browsi…
…ng context
- Loading branch information
commit 3bb093cc16875c6fcfe5e7de9c9f6760ff9e18fc
| "deleted_reftests": {}, | ||
| "items": { | ||
| "testharness": { | ||
| "cssom-view/scrolling-no-browsing-context.html": [ | ||
| { | ||
| "path": "cssom-view/scrolling-no-browsing-context.html", | ||
| "url": "/cssom-view/scrolling-no-browsing-context.html" | ||
| } | ||
| ], | ||
| "url/url-domainToUnicode.html": [ | ||
| { | ||
| "path": "url/url-domainToUnicode.html", |
This file was deleted.
Oops, something went wrong.
| @@ -0,0 +1,33 @@ | ||
| <!doctype html> | ||
| <meta charset="utf-8"> | ||
| <title>cssom-view scrolling-no-browsing-context</title> | ||
| <script src="/resources/testharness.js"></script> | ||
| <script src="/resources/testharnessreport.js"></script> | ||
| <script> | ||
| setup({explicit_done:true}); | ||
| window.onload = function () { | ||
| test(function () { | ||
| var doc = document.implementation.createDocument("http://example.com/", "html", null); | ||
|
|
||
| var element = doc.createElement("tag") | ||
| assert_equals(element.scrollTop, 0, "scrollTop should be always 0"); | ||
| assert_equals(element.scrollLeft, 0, "scrollLeft should be always 0"); | ||
|
|
||
| element.scrollTop = 10; | ||
| element.scrollLeft = 10; | ||
| assert_equals(element.scrollTop, 0, "scrollTop should be always 0"); | ||
| assert_equals(element.scrollLeft, 0, "scrollLeft should be always 0"); | ||
|
|
||
| element.scroll(10, 10); | ||
| assert_equals(element.scrollTop, 0, "scrollTop should be always 0"); | ||
| assert_equals(element.scrollLeft, 0, "scrollLeft should be always 0"); | ||
|
|
||
| element.scrollTo(10, 10); | ||
| assert_equals(element.scrollTop, 0, "scrollTop should be always 0"); | ||
| assert_equals(element.scrollLeft, 0, "scrollLeft should be always 0"); | ||
|
|
||
| }, "Element get and set scrollTop, scrollLeft, scroll() and scrollTo() test"); | ||
|
|
||
| done(); | ||
| }; | ||
| </script> |
ProTip!
Use n and p to navigate between commits in a pull request.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Why are you changing this?