-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add a test for the {Window,Document}.location getters. #1506
Comments
I'd like to work on this but I'm not sure where to begin. Can someone please help me get started? |
For example, you could test: var doc = document.implementation.createHTMLDocument();
assert_equals(doc.location, null); and var iframe = document.createElement("iframe");
document.body.appendChild(iframe);
var win = iframe.contentWindow;
assert_not_equals(win.location, null);
assert_equals(win.location, win.document.location);
// ... and test its members
document.body.removeChild(iframe);
assert_equals(win.location, null);
assert_equals(win.document.location, null); |
I'm still trying to get my feet wet but I think I have done what's needed to fulfill the example provided above. However I'm not sure if I've put it in the right place and I need help researching if this is the extent of what's needed. Perhaps if you could help give me a push in the right direction here I can try to figure it out. As an aside, I noticed that I'm getting a failure in /dom/nodes/DOMImplementation-createHTMLDocument.html without any changes. I'm not sure if this needs to get fixed separately:
At any rate, here is what I've come up with so far for my tests:
I ran this locally and the tests seem to pass, aside from the previous failure mentioned above. |
Those look great, but the second test doesn't belong in that file. |
@Ms2ger What is the correct file for the second test? |
A new file under html/browsers/history/the-location-interface/, I think |
I'm sorry but I'm going to have to drop this for now. I switched over to the gfx team last quarter and just don't have the time to continue working on this. My apologies but I'd rather be honest and drop this than let it linger indefinitely. |
Looks like it. |
In particular, them being null if the document is not in a browsing context.
The text was updated successfully, but these errors were encountered: