Loading devtools/client/styleeditor/test/browser.ini +1 −1 Original line number Diff line number Diff line Loading @@ -58,6 +58,7 @@ support-files = sourcemaps-watching.html test_private.css test_private.html doc_empty.html doc_fetch_from_netmonitor.html doc_long_string.css doc_long.css Loading Loading @@ -88,7 +89,6 @@ fail-if = fission # Got the expected number of style sheets. - Got 6, expected 1 [browser_styleeditor_copyurl.js] [browser_styleeditor_enabled.js] [browser_styleeditor_fetch-from-netmonitor.js] fail-if = fission [browser_styleeditor_filesave.js] [browser_styleeditor_fission_switch_target.js] [browser_styleeditor_highlight-selector.js] Loading devtools/client/styleeditor/test/browser_styleeditor_fetch-from-netmonitor.js +8 −1 Original line number Diff line number Diff line Loading @@ -6,11 +6,18 @@ // A test to ensure Style Editor only issues 1 request for each stylesheet (instead of 2) // by using the network monitor's request history (bug 1306892). const EMPTY_TEST_URL = TEST_BASE_HTTP + "doc_empty.html"; const TEST_URL = TEST_BASE_HTTP + "doc_fetch_from_netmonitor.html"; add_task(async function() { info("Opening netmonitor"); const tab = await addTab("about:blank"); // Navigate first to an empty document in order to: // * avoid introducing a cross process navigation when calling navigateTo() // * properly wait for request updates when calling navigateTo, while showToolbox // won't necessarily wait for all pending requests. (If we were loading TEST_URL // in the tab, we might have pending updates in the netmonitor which won't be // awaited for by showToolbox) const tab = await addTab(EMPTY_TEST_URL); const target = await TargetFactory.forTab(tab); const toolbox = await gDevTools.showToolbox(target, "netmonitor"); const monitor = toolbox.getPanel("netmonitor"); Loading devtools/client/styleeditor/test/doc_empty.html 0 → 100644 +3 −0 Original line number Diff line number Diff line <!doctype html> <html> </html> Loading
devtools/client/styleeditor/test/browser.ini +1 −1 Original line number Diff line number Diff line Loading @@ -58,6 +58,7 @@ support-files = sourcemaps-watching.html test_private.css test_private.html doc_empty.html doc_fetch_from_netmonitor.html doc_long_string.css doc_long.css Loading Loading @@ -88,7 +89,6 @@ fail-if = fission # Got the expected number of style sheets. - Got 6, expected 1 [browser_styleeditor_copyurl.js] [browser_styleeditor_enabled.js] [browser_styleeditor_fetch-from-netmonitor.js] fail-if = fission [browser_styleeditor_filesave.js] [browser_styleeditor_fission_switch_target.js] [browser_styleeditor_highlight-selector.js] Loading
devtools/client/styleeditor/test/browser_styleeditor_fetch-from-netmonitor.js +8 −1 Original line number Diff line number Diff line Loading @@ -6,11 +6,18 @@ // A test to ensure Style Editor only issues 1 request for each stylesheet (instead of 2) // by using the network monitor's request history (bug 1306892). const EMPTY_TEST_URL = TEST_BASE_HTTP + "doc_empty.html"; const TEST_URL = TEST_BASE_HTTP + "doc_fetch_from_netmonitor.html"; add_task(async function() { info("Opening netmonitor"); const tab = await addTab("about:blank"); // Navigate first to an empty document in order to: // * avoid introducing a cross process navigation when calling navigateTo() // * properly wait for request updates when calling navigateTo, while showToolbox // won't necessarily wait for all pending requests. (If we were loading TEST_URL // in the tab, we might have pending updates in the netmonitor which won't be // awaited for by showToolbox) const tab = await addTab(EMPTY_TEST_URL); const target = await TargetFactory.forTab(tab); const toolbox = await gDevTools.showToolbox(target, "netmonitor"); const monitor = toolbox.getPanel("netmonitor"); Loading
devtools/client/styleeditor/test/doc_empty.html 0 → 100644 +3 −0 Original line number Diff line number Diff line <!doctype html> <html> </html>