1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-19 04:35:07 +00:00
serenity/Libraries/LibWeb/Tests/Window/window.window_frames_self.js
Luke 8aabec1c94 LibWeb: Expose window.self and window.frames
"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.
2020-08-31 23:05:10 +02:00

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);
});
});