browser_hiddenwindow_existence.js (459B)
1 /* Any copyright is dedicated to the Public Domain. 2 http://creativecommons.org/publicdomain/zero/1.0/ */ 3 4 "use strict"; 5 6 add_task(async function test_hiddenwindow_existence() { 7 switch (AppConstants.platform) { 8 case "macosx": 9 is(Services.appShell.hasHiddenWindow, true, "Hidden window exists"); 10 break; 11 default: 12 is( 13 Services.appShell.hasHiddenWindow, 14 false, 15 "Hidden window does not exist" 16 ); 17 } 18 });