mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-06-25 17:59:54 +00:00
bfa8452350
- Bug 1084525 - Part 2: Refactor expectState from memory-bridge.js to common.js r=fitzgen (241c8d7cd) - Bug 1084525 - Part 3: Add attach and detach methods to PromisesActor r=fitzgen (df0dea46d) - Avoid infinite recursion when lazy-loading devtools modules and stepping into promise code in chrome debugging (bug 1149910). r=jlongster,fitzgen (a8e372285) - Bug 1136341 - fix source actors representing inline scripts in XUL files so breakpoints work r=ejpbruel (904825023) - Bug 1158498 - Can't set a JS breakpoint in inline JS;r=jlong (bbf9200ed) - Bug 1166844 - treat eval'ed code from the console as unnamed eval sources r=ejpbruel (98d19de4e) - Bug 1166852 - handle named eval sources from the console correctly r=ejpbruel (447b21b07) - Bug 1163024 - Part 1: Stylesheet actors should use the common DevToolsUtils.fetch(). r=bgrins (2871b6295) - Bug 1148893 - Miscellaneous fixes to multiple style editor tests. r=bgrins (073392349) - Bug 1150005 - Don't wait for "editor-selected" event in browser_styleeditor_fetch-from-cache.js as it may have already been emitted. r=bgrins (c68786780) - Bug 1163024 - Part 2: Ignore network requests from chrome code in a content toolbox. r=ochameau (6fd22227c) - fix misspatch? (f1c0c1012) - Bug 1161072 - Destroy inspector actor on disconnect. r=pbrosset (62bc54dfe) - Bug 1168088 - Remove SpiderMonkey-specific syntax from toolkit/devtools. r=pbrosset (1f177ae4b) - Bug 1134568 - Implement a preset gallery for CubicBezierWidget incl. 8 preset functions for categories: ease-in, ease-out, and ease-in-out. r=pbrosset (3ae37e757) - Bug 1055181 - Mochitests for the CSS Filter tooltip; r=pbrosset (981c13b02) - Bug 1149671 - Use alt/na/shift to step 0.1/1/10 at a time. r=pbrosset (fd70b5f1b) - Bug 1126457 - Implement a worker utility to easily offload tasks into a worker. r=bgrins (2681ad8a1) - fix misspatch (7afd26b57)
45 lines
1.4 KiB
JavaScript
45 lines
1.4 KiB
JavaScript
/* vim: set ts=2 et sw=2 tw=80: */
|
|
/* Any copyright is dedicated to the Public Domain.
|
|
http://creativecommons.org/publicdomain/zero/1.0/ */
|
|
"use strict";
|
|
|
|
// A test to ensure Style Editor doesn't bybass cache when loading style sheet
|
|
// contents (bug 978688).
|
|
|
|
const TEST_URL = TEST_BASE_HTTP + "doc_uncached.html";
|
|
|
|
add_task(function() {
|
|
let isTesting = gDevTools.testing;
|
|
gDevTools.testing = true;
|
|
|
|
info("Opening netmonitor");
|
|
let tab = yield addTab("about:blank");
|
|
let target = TargetFactory.forTab(tab);
|
|
let toolbox = yield gDevTools.showToolbox(target, "netmonitor");
|
|
let netmonitor = toolbox.getPanel("netmonitor");
|
|
|
|
info("Navigating to test page");
|
|
yield navigateTo(TEST_URL);
|
|
|
|
info("Opening Style Editor");
|
|
let styleeditor = yield toolbox.selectTool("styleeditor");
|
|
|
|
info("Waiting for the source to be loaded.");
|
|
yield styleeditor.UI.editors[0].getSourceEditor();
|
|
|
|
info("Checking Netmonitor contents.");
|
|
let requestsForCss = 0;
|
|
let attachments = [];
|
|
for (let item of netmonitor._view.RequestsMenu) {
|
|
if (item.attachment.url.endsWith("doc_uncached.css")) {
|
|
attachments.push(item.attachment);
|
|
}
|
|
}
|
|
|
|
is(attachments.length, 2,
|
|
"Got two requests for doc_uncached.css after Style Editor was loaded.");
|
|
ok(attachments[1].fromCache,
|
|
"Second request was loaded from browser cache");
|
|
gDevTools.testing = isTesting;
|
|
});
|