mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 04:35:07 +00:00

"self" is a way to refer to the global object that will work in both a window context and a web worker context. "frames" apparently used to return a list of frame objects according to MDN, but it now just returns the window object.
8 lines
265 B
JavaScript
8 lines
265 B
JavaScript
loadPage("file:///res/html/misc/blank.html");
|
|
|
|
afterInitialPageLoad(() => {
|
|
test("window.{window,frames,self} all return the Window object", () => {
|
|
expect(window.window).toBe(window.frames);
|
|
expect(window.window).toBe(window.self);
|
|
});
|
|
});
|