ladybird/Userland/Libraries/LibWeb/Tests/Window/window.window_frames_self.js
Ali Mohammad Pur d897abf4c2 LibWeb: Implement test-web in terms of LibTest/JavaScriptTestRunner
This deduplicates the test-js copy-ism :^)
2021-05-18 18:48:15 +01:00

11 lines
381 B
JavaScript

describe("window_frames_self", () => {
loadLocalPage("/res/html/misc/blank.html");
afterInitialPageLoad(page => {
test("window.{window,frames,self} all return the Window object", () => {
expect(page.window.window).toBe(page.window.frames);
expect(page.window.window).toBe(page.window.self);
});
});
waitForPageToLoad();
});