Bug 1407630 - Clean support-files in devtools/client/webconsole/test/mochitest/; r=Honza.

These files aren't used anymore, so we can
remove them.

Differential Revision: https://phabricator.services.mozilla.com/D22069

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Nicolas Chevobbe 2019-03-05 14:40:07 +00:00
Родитель eb73069288
Коммит 5f9d2acd17
42 изменённых файлов: 0 добавлений и 999 удалений

Просмотреть файл

@ -12,8 +12,6 @@ support-files =
source-mapped.css source-mapped.css
source-mapped.css.map source-mapped.css.map
source-mapped.scss source-mapped.scss
test_bug_770099_violation.html
test_bug_770099_violation.html^headers^
test_console_csp_ignore_reflected_xss_message.html test_console_csp_ignore_reflected_xss_message.html
test_console_csp_ignore_reflected_xss_message.html^headers^ test_console_csp_ignore_reflected_xss_message.html^headers^
test_hpkp-invalid-headers.sjs test_hpkp-invalid-headers.sjs
@ -21,21 +19,6 @@ support-files =
test-autocomplete-in-stackframe.html test-autocomplete-in-stackframe.html
test-batching.html test-batching.html
test-console-trace-duplicates.html test-console-trace-duplicates.html
test-bug-585956-console-trace.html
test-bug-599725-response-headers.sjs
test-bug-601177-log-levels.html
test-bug-601177-log-levels.js
test-bug-630733-response-redirect-headers.sjs
test-bug-632275-getters.html
test-bug-646025-console-file-location.html
test-bug-766001-console-log.js
test-bug-766001-js-console-links.html
test-bug-766001-js-errors.js
test-bug-782653-css-errors-1.css
test-bug-782653-css-errors-2.css
test-bug-782653-css-errors.html
test-bug-837351-security-errors.html
test-bug-952277-highlight-nodes-in-vview.html
test-cd-iframe-child.html test-cd-iframe-child.html
test-cd-iframe-parent.html test-cd-iframe-parent.html
test-console-api-iframe.html test-console-api-iframe.html
@ -48,24 +31,10 @@ support-files =
test-click-function-to-source.html test-click-function-to-source.html
test-click-function-to-source.js test-click-function-to-source.js
test-closure-optimized-out.html test-closure-optimized-out.html
test-closures.html
test-console-api-stackframe.html
test-console-clear.html
test-console-column.html
test-console-count-external-file.js
test-console-count.html
test-console-extras.html
test-console-filters.html test-console-filters.html
test-console-group.html test-console-group.html
test-console-iframes.html test-console-iframes.html
test-console-output-02.html
test-console-output-03.html
test-console-output-04.html
test-console-output-dom-elements.html
test-console-output-events.html
test-console-replaced-api.html
test-console-table.html test-console-table.html
test-console-trace-async.html
test-console-workers.html test-console-workers.html
test-console.html test-console.html
test-cu-reporterror.js test-cu-reporterror.js
@ -74,16 +43,11 @@ support-files =
test-duplicate-error.html test-duplicate-error.html
test-dynamic-import.html test-dynamic-import.html
test-dynamic-import.js test-dynamic-import.js
test-encoding-ISO-8859-1.html
test-error.html test-error.html
test-eval-in-stackframe.html test-eval-in-stackframe.html
test-eval-sources.html test-eval-sources.html
test-exception-stackframe.html
test-external-script-errors.html test-external-script-errors.html
test-external-script-errors.js test-external-script-errors.js
test-file-location.js
test-filter.html
test-for-of.html
test-iframe-insecure-form-action.html test-iframe-insecure-form-action.html
test-iframe1.html test-iframe1.html
test-iframe2.html test-iframe2.html
@ -133,7 +97,6 @@ support-files =
test-message-categories-workers.html test-message-categories-workers.html
test-message-categories-workers.js test-message-categories-workers.js
test-mixedcontent-securityerrors.html test-mixedcontent-securityerrors.html
test-mutation.html
test-network-exceptions.html test-network-exceptions.html
test-network-request.html test-network-request.html
test-network.html test-network.html
@ -141,11 +104,7 @@ support-files =
test-non-javascript-mime.js test-non-javascript-mime.js
test-non-javascript-mime.js^headers^ test-non-javascript-mime.js^headers^
test-non-javascript-mime-worker.html test-non-javascript-mime-worker.html
test-observe-http-ajax.html
test-own-console.html
test-property-provider.html
test-reopen-closed-tab.html test-reopen-closed-tab.html
test-result-format-as-string.html
test-sourcemap-error-01.html test-sourcemap-error-01.html
test-sourcemap-error-01.js test-sourcemap-error-01.js
test-sourcemap-error-02.html test-sourcemap-error-02.html

Просмотреть файл

@ -1,28 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head><meta charset="utf-8">
<title>Web Console test for bug 585956 - console.trace()</title>
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<script type="application/javascript">
/* eslint-disable */
window.foobar585956c = function(a) {
console.trace();
return a + "c";
};
function foobar585956b(a) {
return foobar585956c(a + "b");
}
function foobar585956a(omg) {
return foobar585956b(omg + "a");
}
foobar585956a("omg");
</script>
</head>
<body>
<p>Web Console test for bug 585956 - console.trace().</p>
</body>
</html>

Просмотреть файл

@ -1,25 +0,0 @@
/*
* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/
*/
function handleRequest(request, response)
{
var Etag = '"4c881ab-b03-435f0a0f9ef00"';
var IfNoneMatch = request.hasHeader("If-None-Match")
? request.getHeader("If-None-Match")
: "";
var page = "<!DOCTYPE html><html><body><p>hello world!</p></body></html>";
response.setHeader("Etag", Etag, false);
if (IfNoneMatch == Etag) {
response.setStatusLine(request.httpVersion, "304", "Not Modified");
}
else {
response.setHeader("Content-Type", "text/html", false);
response.setHeader("Content-Length", page.length + "", false);
response.write(page);
}
}

Просмотреть файл

@ -1,21 +0,0 @@
<!DOCTYPE HTML>
<html dir="ltr" xml:lang="en-US" lang="en-US">
<head>
<meta charset="utf-8">
<title>Web Console test for bug 601177: log levels</title>
<script src="test-bug-601177-log-levels.js" type="text/javascript"></script>
<script type="text/javascript">
"use strict";
window.undefinedPropertyBug601177;
</script>
<!--
- Any copyright is dedicated to the Public Domain.
- http://creativecommons.org/publicdomain/zero/1.0/
-->
</head>
<body>
<h1>Web Console test for bug 601177: log levels</h1>
<img src="test-image.png?bug601177">
<img src="foobar-known-to-fail.png?bug601177">
</body>
</html>

Просмотреть файл

@ -1,10 +0,0 @@
/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
/* vim: set ft=javascript ts=2 et sw=2 tw=80: */
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
/* eslint-disable */
foobarBug601177strictError = "strict error";
window.foobarBug601177exception();

Просмотреть файл

@ -1,16 +0,0 @@
/*
* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/
*/
function handleRequest(request, response)
{
var page = "<!DOCTYPE html><html><body><p>hello world! bug 630733</p></body></html>";
response.setStatusLine(request.httpVersion, "301", "Moved Permanently");
response.setHeader("Content-Type", "text/html", false);
response.setHeader("Content-Length", page.length + "", false);
response.setHeader("x-foobar-bug630733", "bazbaz", false);
response.setHeader("Location", "/redirect-from-bug-630733", false);
response.write(page);
}

Просмотреть файл

@ -1,21 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Web Console test for bug 632275 - getters</title>
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<script type="application/javascript">
/* eslint-disable */
document.foobar = {
_val: 5,
get val() { return ++this._val; }
};
</script>
</head>
<body>
<p>Web Console test for bug 632275 - getters.</p>
</body>
</html>

Просмотреть файл

@ -1,12 +0,0 @@
<!DOCTYPE HTML>
<html dir="ltr" xml:lang="en-US" lang="en-US"><head>
<meta charset="utf-8">
<title>Console file location test</title>
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<script src="test-file-location.js"></script>
</head>
<body>
<h1>Web Console File Location Test Page</h1>
</body>
</html>

Просмотреть файл

@ -1,12 +0,0 @@
/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
/* vim: set ft=javascript ts=2 et sw=2 tw=80: */
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
"use strict";
function onLoad123() {
console.log("Blah Blah");
}
window.addEventListener("load", onLoad123);

Просмотреть файл

@ -1,14 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Web Console test for bug 766001 : Open JS/Console call Links in Debugger</title>
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<script type="text/javascript" src="test-bug-766001-js-errors.js"></script>
<script type="text/javascript" src="test-bug-766001-console-log.js"></script>
</head>
<body>
<p>Web Console test for bug 766001 : Open JS/Console call Links in Debugger.</p>
</body>
</html>

Просмотреть файл

@ -1,10 +0,0 @@
/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
/* vim: set ft=javascript ts=2 et sw=2 tw=80: */
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
"use strict";
window.addEventListener("load", function() {
document.bar();
});

Просмотреть файл

@ -1,10 +0,0 @@
/*
* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/
*/
body {
color: #0f0;
font-weight: green;
}

Просмотреть файл

@ -1,10 +0,0 @@
/*
* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/
*/
body {
color: #0fl;
font-weight: bold;
}

Просмотреть файл

@ -1,14 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Web Console test for bug 782653 : Open CSS Links in Style Editor</title>
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<link rel="stylesheet" href="test-bug-782653-css-errors-1.css">
<link rel="stylesheet" href="test-bug-782653-css-errors-2.css">
</head>
<body>
<p>Web Console test for bug 782653 : Open CSS Links in Style Editor.</p>
</body>
</html>

Просмотреть файл

@ -1,15 +0,0 @@
<!DOCTYPE HTML>
<html dir="ltr" xml:lang="en-US" lang="en-US"><head>
<meta charset="utf8">
<title>Mixed Content test - http on https</title>
<script src="testscript.js"></script>
<!--
- Any copyright is dedicated to the Public Domain.
- http://creativecommons.org/publicdomain/zero/1.0/
-->
</head>
<body>
<iframe src = "http://example.com"></iframe>
</body>
</html>

Просмотреть файл

@ -1,15 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Web Console test for bug 952277 - Highlighting and selecting nodes from the variablesview</title>
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
</head>
<body>
<p>Web Console test for bug 952277 - Highlighting and selecting nodes from the variablesview</p>
<p>Web Console test for bug 952277 - Highlighting and selecting nodes from the variablesview</p>
<p>Web Console test for bug 952277 - Highlighting and selecting nodes from the variablesview</p>
</body>
</html>

Просмотреть файл

@ -1,28 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta charset='utf-8'/>
<title>Console Test for Closure Inspection</title>
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<script type="text/javascript">
/* eslint-disable */
function injectPerson() {
var PersonFactory = function _pfactory(name) {
var foo = 10;
return {
getName: function() { return name; },
getFoo: function() { foo = Date.now(); return foo; }
};
};
window.george = new PersonFactory("George");
debugger;
}
</script>
</head>
<body>
<button onclick="injectPerson()">Test</button>
</body>
</html>

Просмотреть файл

@ -1,33 +0,0 @@
<!DOCTYPE HTML>
<html dir="ltr" lang="en">
<head>
<meta charset="utf8">
<!--
- Any copyright is dedicated to the Public Domain.
- http://creativecommons.org/publicdomain/zero/1.0/
-->
<title>Test for bug 920116 - stacktraces for console API messages</title>
<script>
/* eslint-disable */
function firstCall() {
secondCall();
}
function secondCall() {
thirdCall();
}
function thirdCall() {
console.log("foo-log");
console.error("foo-error");
console.exception("foo-exception");
console.assert("red" == "blue", "foo-assert");
}
window.onload = firstCall;
</script>
</head>
<body>
<p>Hello world!</p>
</body>
</html>

Просмотреть файл

@ -1,17 +0,0 @@
<!DOCTYPE HTML>
<html dir="ltr" xml:lang="en-US" lang="en-US"><head>
<meta charset="utf-8">
<title>Console.clear() tests</title>
<script type="text/javascript">
/* eslint-disable */
console.log("log1");
console.log("log2");
console.clear();
window.objFromPage = { a: 1 };
</script>
</head>
<body>
<h1 id="header">Clear Demo</h1>
</body>
</html>

Просмотреть файл

@ -1,18 +0,0 @@
<!DOCTYPE HTML>
<html dir="ltr" xml:lang="en-US" lang="en-US">
<head>
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<meta charset="utf-8">
<title>Console test</title>
<script type="text/javascript">
/* eslint-disable */
console.info("INLINE SCRIPT:"); console.log('Further');
console.warn("I'm warning you, he will eat up all yr bacon.");
console.error("Error Message");
console.log('Rainbooooww');
console.log('NYAN CATZ');
</script>
</head>
</html>

Просмотреть файл

@ -1,11 +0,0 @@
/* eslint-disable no-unused-vars */
"use strict";
function counterExternalFile() {
console.count("console.count() testcounter");
}
function externalCountersWithoutLabel() {
console.count();
console.count();
}

Просмотреть файл

@ -1,53 +0,0 @@
<!DOCTYPE HTML>
<html dir="ltr" xml:lang="en-US" lang="en-US">
<head>
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<meta charset="utf-8">
<title>console.count() test</title>
<script src="test-console-count-external-file.js"></script>
<script tyoe="text/javascript">
/* eslint-disable */
function counterSeperateScriptTag() {
console.count("console.count() testcounter");
}
</script>
<script type="text/javascript">
/* eslint-disable */
function counterNoLabel() {
console.count();
}
function counterWithLabel() {
console.count("console.count() testcounter");
}
function testLocal() {
console.log("start");
counterNoLabel();
counterNoLabel();
counterWithLabel();
counterWithLabel();
counterSeperateScriptTag();
counterSeperateScriptTag();
console.log("end");
}
function testExternal() {
console.log("start");
counterExternalFile();
counterExternalFile();
externalCountersWithoutLabel();
console.log("end");
}
</script>
</head>
<body>
<p>test console.count()</p>
<button id="local" onclick="testLocal();">
test local console.count() calls
</button>
<button id="external" onclick="testExternal();">
test external console.count() calls
</button>
</body>
</html>

Просмотреть файл

@ -1,19 +0,0 @@
<!DOCTYPE HTML>
<html dir="ltr" xml:lang="en-US" lang="en-US"><head>
<meta charset="utf-8">
<title>Console extended API test</title>
<script type="text/javascript">
/* eslint-disable */
function test() {
console.log("start");
console.clear();
console.log("end");
}
</script>
</head>
<body>
<h1 id="header">Heads Up Display Demo</h1>
<button onclick="test();">Test Extended API</button>
<div id="myDiv"></div>
</body>
</html>

Просмотреть файл

@ -1,67 +0,0 @@
<!DOCTYPE HTML>
<html dir="ltr" lang="en-US">
<head>
<meta charset="utf-8">
<title>Test the web console output - 02</title>
<!--
- Any copyright is dedicated to the Public Domain.
- http://creativecommons.org/publicdomain/zero/1.0/
-->
</head>
<body>
<p>hello world!</p>
<script type="text/javascript">
/* eslint-disable */
function testfn1() { return 42; }
var testobj1 = {
testfn2: function() { return 42; },
};
function testfn3() { return 42; }
testfn3.displayName = "testfn3DisplayName";
var array1 = [1, 2, 3, "a", "b", "c", "4", "5"];
var array2 = ["a", document, document.body, document.body.dataset,
document.body.classList];
var array3 = [1, window, null, "a", "b", undefined, false, "", -Infinity, testfn3, testobj1, "foo", "bar"];
var array4 = new Array(5);
array4.push("test");
array4.push(array4);
var typedarray1 = new Int32Array([1, 287, 8651, 40983, 8754]);
var set1 = new Set([1, 2, null, array3, "a", "b", undefined, document.head]);
set1.add(set1);
var bunnies = new String("bunnies")
var weakset = new WeakSet([bunnies, document.head]);
var testobj2 = {a: "b", c: "d", e: 1, f: "2"};
testobj2.foo = testobj1;
testobj2.bar = testobj2;
Object.defineProperty(testobj2, "getterTest", {
enumerable: true,
get: function() {
return 42;
},
});
var testobj3 = {a: "b", c: "d", e: 1, f: "2", g: true, h: null, i: undefined,
j: "", k: document.styleSheets, l: document.body.childNodes,
o: new Array(125), m: document.head};
var testobj4 = {a: "b", c: "d"};
Object.defineProperty(testobj4, "nonEnumerable", { value: "hello world" });
var map1 = new Map([["a", "b"], [document.body.children, testobj2]]);
map1.set(map1, set1);
var weakmap = new WeakMap([[bunnies, 23], [document.body.children, testobj2]]);
</script>
</body>
</html>

Просмотреть файл

@ -1,31 +0,0 @@
<!DOCTYPE HTML>
<html dir="ltr" lang="en-US">
<head>
<meta charset="utf-8">
<title>Test the web console output - 03</title>
<!--
- Any copyright is dedicated to the Public Domain.
- http://creativecommons.org/publicdomain/zero/1.0/
-->
</head>
<body>
<p>hello world!</p>
<script type="text/javascript">
/* eslint-disable */
function testBodyClassName() {
document.body.className = "test1 tezt2";
return document.body;
}
function testBodyID() {
document.body.id = 'foobarid';
return document.body;
}
function testBodyDataset() {
document.body.dataset.preview = 'zuzu"<a>foo';
return document.body;
}
</script>
</body>
</html>

Просмотреть файл

@ -1,78 +0,0 @@
<!DOCTYPE HTML>
<html dir="ltr" lang="en-US">
<head>
<meta charset="utf-8">
<title>Test the web console output - 04</title>
<!--
- Any copyright is dedicated to the Public Domain.
- http://creativecommons.org/publicdomain/zero/1.0/
-->
</head>
<body>
<p>hello world!</p>
<script type="text/javascript">
/* eslint-disable */
function testTextNode() {
return document.querySelector("p").childNodes[0];
}
function testCommentNode() {
return document.head.childNodes[5];
}
function testDocumentFragment() {
var frag = document.createDocumentFragment();
var div = document.createElement("div");
div.id = "foo1";
div.className = "bar";
frag.appendChild(div);
var span = document.createElement("span");
span.id = "foo2";
span.textContent = "hello world";
div.appendChild(span);
var div2 = document.createElement("div");
div2.id = "foo3";
frag.appendChild(div2);
return frag;
}
function testError() {
try {
window.foobar("a");
} catch (ex) {
return ex;
}
return null;
}
function testDOMException() {
try {
var foo = document.querySelector("foo;()bar!");
} catch (ex) {
return ex;
}
return null;
}
function testCSSStyleDeclaration() {
document.body.style = 'color: green; font-size: 2em';
return document.body.style;
}
function testStyleSheetList() {
var style = document.querySelector("style");
if (!style) {
style = document.createElement("style");
style.textContent = "p, div { color: blue; font-weight: bold }\n" +
"@media print { p { background-color: yellow } }";
document.head.appendChild(style);
}
return document.styleSheets;
}
</script>
</body>
</html>

Просмотреть файл

@ -1,92 +0,0 @@
<!DOCTYPE HTML>
<html dir="ltr" lang="en-US">
<head>
<meta charset="utf-8">
<title>Test the web console output - dom elements</title>
<!--
- Any copyright is dedicated to the Public Domain.
- http://creativecommons.org/publicdomain/zero/1.0/
-->
</head>
<body class="body-class" id="body-id">
<p some-attribute="some-value">hello world!</p>
<p id="lots-of-attributes" a b c d e f g h i j k l m n></p>
<!--
Be sure we have a charset in our iframe's data URI, otherwise we get the following extra
console output message:
"The character encoding of a framed document was not declared. The document may appear different if viewed without the document framing it."
This wouldn't be a big deal, but when we look for a "<p>" in our `waitForMessage` helper,
this extra encoding warning line contains the data URI source, returning a message
that was unexpected
-->
<iframe srcdoc="<p>hello from iframe</p>"></iframe>
<div class="some classname here with more classnames here"></div>
<svg>
<clipPath>
<rect x="0" y="0" width="10" height="5"></rect>
</clipPath>
</svg>
<script type="text/javascript">
/* eslint-disable */
function testBodyNode() {
return document.body;
}
function testDocumentElement() {
return document.documentElement;
}
function testLotsOfAttributes() {
return document.querySelector("#lots-of-attributes");
}
function testDocument() {
return document;
}
function testNode() {
return document.querySelector("p");
}
function testSvgNode() {
return document.querySelector("clipPath");
}
function testNodeList() {
return document.querySelectorAll("body *");
}
function testNodeInIframe() {
return document.querySelector("iframe").contentWindow.document.querySelector("p");
}
function testDocumentFragment() {
var frag = document.createDocumentFragment();
var span = document.createElement("span");
span.className = 'foo';
span.dataset.lolz = 'hehe';
var div = document.createElement('div')
div.id = 'fragdiv';
frag.appendChild(span);
frag.appendChild(div);
return frag;
}
function testNodeInDocumentFragment() {
var frag = testDocumentFragment();
return frag.firstChild;
}
function testUnattachedNode() {
var p = document.createElement("p");
p.className = "such-class";
p.dataset.data = "such-data";
return p;
}
</script>
</body>
</html>

Просмотреть файл

@ -1,43 +0,0 @@
<!DOCTYPE HTML>
<html dir="ltr" lang="en-US">
<head>
<meta charset="utf-8">
<title>Test the web console output for DOM events</title>
<!--
- Any copyright is dedicated to the Public Domain.
- http://creativecommons.org/publicdomain/zero/1.0/
-->
</head>
<body>
<p>hello world!</p>
<script type="text/javascript">
/* eslint-disable */
function testDOMEvents() {
function eventLogger(ev) {
console.log("eventLogger", ev);
}
document.addEventListener("mousemove", eventLogger);
document.addEventListener("keypress", eventLogger);
synthesizeMouseMove();
synthesizeKeyPress("a", {shiftKey: true});
}
function synthesizeMouseMove(element) {
var mouseEvent = document.createEvent("MouseEvent");
mouseEvent.initMouseEvent("mousemove", true, true, window, 0, 0, 0, 0, 0,
false, false, false, false, 0, null);
document.dispatchEvent(mouseEvent);
}
function synthesizeKeyPress(key, options) {
var keyboardEvent = document.createEvent("KeyboardEvent");
keyboardEvent.initKeyEvent("keypress", true, true, window, false, false,
options.shiftKey, false, key.charCodeAt(0), 0);
document.dispatchEvent(keyboardEvent);
}
</script>
</body>
</html>

Просмотреть файл

@ -1,13 +0,0 @@
<!DOCTYPE HTML>
<html dir="ltr" xml:lang="en-US" lang="en-US"><head>
<meta charset="utf-8">
<title>Console test replaced API</title>
</head>
<body>
<h1 id="header">Web Console Replace API Test</h1>
<script type="text/javascript">
/* eslint-disable */
window.console = {log: function (msg){}, info: function (msg){}, warn: function (msg){}, error: function (msg){}};
</script>
</body>
</html>

Просмотреть файл

@ -1,25 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head><meta charset="utf-8">
<title>Web Console test for bug 1200832 - console.trace() async stacks</title>
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<script type="application/javascript">
/* eslint-disable */
function inner() {
console.trace();
}
function time1() {
new Promise(function(resolve, reject) {
setTimeout(resolve, 10);
}).then(inner);
}
setTimeout(time1, 10);
</script>
</head>
<body>
<p>Web Console test for bug 1200832 - console.trace() async stacks</p>
</body>
</html>

Просмотреть файл

@ -1,7 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta charset="ISO-8859-1">
</head>
<body>üöä</body>
</html>

Просмотреть файл

@ -1,44 +0,0 @@
<!DOCTYPE HTML>
<html dir="ltr" lang="en">
<head>
<meta charset="utf8">
<!--
- Any copyright is dedicated to the Public Domain.
- http://creativecommons.org/publicdomain/zero/1.0/
-->
<title>Test for bug 1184172 - stacktraces for exceptions</title>
<script>
/* eslint-disable */
function firstCall() {
secondCall();
}
// Check anonymous functions
var secondCall = function () {
thirdCall();
}
function thirdCall() {
nonExistingMethodCall();
}
function domAPI() {
document.querySelector("buggy;selector");
}
function domException() {
throw new DOMException("DOMException");
}
window.addEventListener("load", firstCall);
window.addEventListener("load", function onLoadDomAPI() {
domAPI();
});
window.addEventListener("load", function onLoadDomException() {
domException();
});
</script>
</head>
<body>
<p>Hello world!</p>
</body>
</html>

Просмотреть файл

@ -1,12 +0,0 @@
/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
/* vim: set ft=javascript ts=2 et sw=2 tw=80: */
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
"use strict";
console.log("message for level log");
console.info("message for level info");
console.warn("message for level warn");
console.error("message for level error");
console.debug("message for level debug");

Просмотреть файл

@ -1,11 +0,0 @@
<!DOCTYPE HTML>
<html dir="ltr" xml:lang="en-US" lang="en-US"><head>
<meta charset="utf-8">
<title>Console test</title>
<script type="text/javascript">
</script>
</head>
<body>
<h1>Heads Up Display Filter Test Page</h1>
</body>
</html>

Просмотреть файл

@ -1,8 +0,0 @@
<!DOCTYPE HTML>
<html>
<meta charset="utf-8">
<body>
<h1>a</h1>
<div><p>b</p></div>
<h2>c</h2>
<p>d</p>

Просмотреть файл

@ -1,17 +0,0 @@
<!DOCTYPE HTML>
<html dir="ltr" xml:lang="en-US" lang="en-US">
<head>
<meta charset="utf-8">
<title>Console mutation test</title>
<script>
/* eslint-disable */
window.onload = function (){
var node = document.createElement("div");
document.body.appendChild(node);
};
</script>
</head>
<body>
<h1>Heads Up Display DOM Mutation Test Page</h1>
</body>
</html>

Просмотреть файл

@ -1,18 +0,0 @@
<!DOCTYPE HTML>
<html dir="ltr" xml:lang="en-US" lang="en-US"><head>
<meta charset="utf-8">
<title>Console HTTP test page</title>
<script type="text/javascript">
/* eslint-disable */
function test() {
var xmlhttp = new XMLHttpRequest();
xmlhttp.open('get', 'test-data.json', false);
xmlhttp.send(null);
}
</script>
</head>
<body onload="test();">
<h1>Heads Up Display HTTP & AJAX Test Page</h1>
<h2>This page fires an ajax request so we can see the http logging of the console</h2>
</body>
</html>

Просмотреть файл

@ -1,25 +0,0 @@
<!DOCTYPE HTML>
<html dir="ltr" xml:lang="en-US" lang="en-US">
<head>
<meta charset="utf-8">
<script>
/* eslint-disable */
var _console = {
foo: "bar"
}
window.console = _console;
function loadIFrame() {
var iframe = document.body.querySelector("iframe");
iframe.addEventListener("load", function() {
iframe.removeEventListener("load", arguments.callee, true);
}, true);
iframe.setAttribute("src", "test-console.html");
}
</script>
</head>
<body>
<iframe></iframe>
</body>

Просмотреть файл

@ -1,15 +0,0 @@
<!DOCTYPE HTML>
<html dir="ltr" xml:lang="en-US" lang="en-US"><head>
<meta charset="utf-8">
<title>Property provider test</title>
<script>
/* eslint-disable */
var testObj = {
testProp: 'testValue'
};
</script>
</head>
<body>
<h1>Heads Up Property Provider Test Page</h1>
</body>
</html>

Просмотреть файл

@ -1,26 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Web Console test: jsterm eval format as a string</title>
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
</head>
<body>
<p>Make sure js eval results are formatted as strings.</p>
<script>
/* eslint-disable */
document.querySelector("p").toSource = function() {
var element = document.createElement("div");
element.id = "foobar";
element.textContent = "bug772506_content";
element.setAttribute("onmousemove",
"(function () {" +
" gBrowser._bug772506 = 'foobar';" +
"})();"
);
return element;
};
</script>
</body>
</html>

Просмотреть файл

@ -1,13 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>Test for Bug 770099 - policy violation</title>
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
</head>
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=770099">Mozilla Bug 770099</a>
<img src="http://some.example.com/test.png">
</body>
</html>

Просмотреть файл

@ -1 +0,0 @@
Content-Security-Policy: default-src 'self'