jackbsteinberg / get-originals-rewriter

BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Test: accessing properties of other Windows #63

Open domenic opened 5 years ago

domenic commented 5 years ago

Given a setup like

const i = document.createElement('iframe');
scrollBy(0, 100);
i.contentWindow.scrollBy(0, 100);

The result should be (omitting imports)

const i = Reflect_apply(Document_createElement, Window_document_get(), ['iframe']);
Window_scrollBy(0, 100);
Reflect_apply(Window_scrollBy, Reflect_apply(HTMLIFrameElement_contentWindow_get, i), [0, 100]);

This kind of test is blocked on #29 and possible #35.