зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1352035 - Removed the dependency on the test case preview-panel settings. r=Honza
MozReview-Commit-ID: yiNyfPYnFD --HG-- extra : rebase_source : b535d201ccb46806a04546c74bf66bb9bfbb8c95
This commit is contained in:
Родитель
0bbe2d1660
Коммит
33297fc924
|
@ -5,7 +5,6 @@ support-files =
|
|||
dropmarker.svg
|
||||
head.js
|
||||
html_cause-test-page.html
|
||||
html_content-type-test-page.html
|
||||
html_content-type-without-cache-test-page.html
|
||||
html_brotli-test-page.html
|
||||
html_image-tooltip-test-page.html
|
||||
|
|
|
@ -28,7 +28,6 @@ const HTTPS_EXAMPLE_URL = "https://example.com/browser/devtools/client/netmonito
|
|||
const API_CALLS_URL = EXAMPLE_URL + "html_api-calls-test-page.html";
|
||||
const SIMPLE_URL = EXAMPLE_URL + "html_simple-test-page.html";
|
||||
const NAVIGATE_URL = EXAMPLE_URL + "html_navigate-test-page.html";
|
||||
const CONTENT_TYPE_URL = EXAMPLE_URL + "html_content-type-test-page.html";
|
||||
const CONTENT_TYPE_WITHOUT_CACHE_URL = EXAMPLE_URL + "html_content-type-without-cache-test-page.html";
|
||||
const CONTENT_TYPE_WITHOUT_CACHE_REQUESTS = 8;
|
||||
const CYRILLIC_URL = EXAMPLE_URL + "html_cyrillic-test-page.html";
|
||||
|
|
|
@ -1,53 +0,0 @@
|
|||
<!-- Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ -->
|
||||
<!doctype html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
|
||||
<meta http-equiv="Pragma" content="no-cache" />
|
||||
<meta http-equiv="Expires" content="0" />
|
||||
<title>Network Monitor test page</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p>Content type test</p>
|
||||
|
||||
<script type="text/javascript">
|
||||
/* exported performRequests */
|
||||
"use strict";
|
||||
|
||||
function get(address, callback) {
|
||||
let xhr = new XMLHttpRequest();
|
||||
xhr.open("GET", address, true);
|
||||
|
||||
xhr.onreadystatechange = function () {
|
||||
if (this.readyState == this.DONE) {
|
||||
callback();
|
||||
}
|
||||
};
|
||||
xhr.send(null);
|
||||
}
|
||||
|
||||
function performRequests() {
|
||||
/* eslint-disable max-nested-callbacks */
|
||||
get("sjs_content-type-test-server.sjs?fmt=xml", function () {
|
||||
get("sjs_content-type-test-server.sjs?fmt=css", function () {
|
||||
get("sjs_content-type-test-server.sjs?fmt=js", function () {
|
||||
get("sjs_content-type-test-server.sjs?fmt=json", function () {
|
||||
get("sjs_content-type-test-server.sjs?fmt=bogus", function () {
|
||||
get("test-image.png", function () {
|
||||
// Done.
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
/* eslint-enable max-nested-callbacks */
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
Загрузка…
Ссылка в новой задаче