Open gcbw opened 4 years ago
found this test, but it doesn't touch the .top .parent properties either https://github.com/fgnass/domino/blob/a18b920595db62d26a79c0836deaf997a78d29ce/test/web-platform-tests.js#L145
installed webstrom to make sure i had a decent debugger without a browser.
guessing there's no support for nesting. Is this something we might want to add (i assumed it was already supported because of the w3c tests)
https://github.com/fgnass/domino/blob/master/lib/Window.js#L32
domino doesn't generally do loading, by design. If there's some useful improvements to the handling of <iframe>
which doesn't involve loading content from its src
, I'm certainly open to them, especially if they are standards-based.
don't care about the loading either (the test reset the location just to id them). mostly the nesting is what matters.
I am trying to understand why this code asserts true.
i'm running this on mocha, over node12.
debugging i can confirm that at the time of assert, both window.top and window.self shows the same object (having location.href=child.html.
what am i doing wrong here? Is there a better way to mock a window with a parent window similar to an iframe relation for a test?