Bug 876277 - Normalize formatting for non-test files and rename them to follow a nicer pattern, r=past

--HG--
rename : browser/devtools/debugger/test/browser_dbg_addon1.xpi => browser/devtools/debugger/test/addon1.xpi
rename : browser/devtools/debugger/test/browser_dbg_addon2.xpi => browser/devtools/debugger/test/addon2.xpi
rename : browser/devtools/debugger/test/binary_search.coffee => browser/devtools/debugger/test/code_binary_search.coffee
rename : browser/devtools/debugger/test/binary_search.js => browser/devtools/debugger/test/code_binary_search.js
rename : browser/devtools/debugger/test/binary_search.map => browser/devtools/debugger/test/code_binary_search.map
rename : browser/devtools/debugger/test/blackboxing_blackboxme.js => browser/devtools/debugger/test/code_blackboxing_blackboxme.js
rename : browser/devtools/debugger/test/blackboxing_one.js => browser/devtools/debugger/test/code_blackboxing_one.js
rename : browser/devtools/debugger/test/blackboxing_three.js => browser/devtools/debugger/test/code_blackboxing_three.js
rename : browser/devtools/debugger/test/blackboxing_two.js => browser/devtools/debugger/test/code_blackboxing_two.js
rename : browser/devtools/debugger/test/test-function-search-01.js => browser/devtools/debugger/test/code_function-search-01.js
rename : browser/devtools/debugger/test/test-function-search-02.js => browser/devtools/debugger/test/code_function-search-02.js
rename : browser/devtools/debugger/test/test-function-search-03.js => browser/devtools/debugger/test/code_function-search-03.js
rename : browser/devtools/debugger/test/test-location-changes-bp.js => browser/devtools/debugger/test/code_location-changes.js
rename : browser/devtools/debugger/test/math.js => browser/devtools/debugger/test/code_math.js
rename : browser/devtools/debugger/test/math.map => browser/devtools/debugger/test/code_math.map
rename : browser/devtools/debugger/test/math.min.js => browser/devtools/debugger/test/code_math.min.js
rename : browser/devtools/debugger/test/test-script-switching-01.js => browser/devtools/debugger/test/code_script-switching-01.js
rename : browser/devtools/debugger/test/test-script-switching-02.js => browser/devtools/debugger/test/code_script-switching-02.js
rename : browser/devtools/debugger/test/test-editor-mode => browser/devtools/debugger/test/code_test-editor-mode
rename : browser/devtools/debugger/test/binary_search.html => browser/devtools/debugger/test/doc_binary_search.html
rename : browser/devtools/debugger/test/browser_dbg_blackboxing.html => browser/devtools/debugger/test/doc_blackboxing.html
rename : browser/devtools/debugger/test/browser_dbg_cmd_break.html => browser/devtools/debugger/test/doc_cmd-break.html
rename : browser/devtools/debugger/test/browser_dbg_cmd.html => browser/devtools/debugger/test/doc_cmd-dbg.html
rename : browser/devtools/debugger/test/browser_dbg_conditional-breakpoints.html => browser/devtools/debugger/test/doc_conditional-breakpoints.html
rename : browser/devtools/debugger/test/browser_dbg_update-editor-mode.html => browser/devtools/debugger/test/doc_editor-mode.html
rename : browser/devtools/debugger/test/browser_dbg_tab1.html => browser/devtools/debugger/test/doc_empty-tab-01.html
rename : browser/devtools/debugger/test/browser_dbg_tab2.html => browser/devtools/debugger/test/doc_empty-tab-02.html
rename : browser/devtools/debugger/test/test-event-listeners.html => browser/devtools/debugger/test/doc_event-listeners.html
rename : browser/devtools/debugger/test/browser_dbg_frame-parameters.html => browser/devtools/debugger/test/doc_frame-parameters.html
rename : browser/devtools/debugger/test/browser_dbg_displayName.html => browser/devtools/debugger/test/doc_function-display-name.html
rename : browser/devtools/debugger/test/browser_dbg_function-search-02.html => browser/devtools/debugger/test/doc_function-search.html
rename : browser/devtools/debugger/test/browser_dbg_iframes.html => browser/devtools/debugger/test/doc_iframes.html
rename : browser/devtools/debugger/test/test-location-changes-bp.html => browser/devtools/debugger/test/doc_included-script.html
rename : browser/devtools/debugger/test/browser_dbg_debuggerstatement.html => browser/devtools/debugger/test/doc_inline-debugger-statement.html
rename : browser/devtools/debugger/test/browser_dbg_breakpoint-new-script.html => browser/devtools/debugger/test/doc_inline-script.html
rename : browser/devtools/debugger/test/browser_dbg_big-data.html => browser/devtools/debugger/test/doc_large-array-buffer.html
rename : browser/devtools/debugger/test/minified.html => browser/devtools/debugger/test/doc_minified.html
rename : browser/devtools/debugger/test/browser_dbg_pause-exceptions.html => browser/devtools/debugger/test/doc_pause-exceptions.html
rename : browser/devtools/debugger/test/browser_dbg_stack.html => browser/devtools/debugger/test/doc_recursion-stack.html
rename : browser/devtools/debugger/test/browser_dbg_script-switching.html => browser/devtools/debugger/test/doc_script-switching-01.html
rename : browser/devtools/debugger/test/browser_dbg_script-switching-02.html => browser/devtools/debugger/test/doc_script-switching-02.html
rename : browser/devtools/debugger/test/test-step-out.html => browser/devtools/debugger/test/doc_step-out.html
rename : browser/devtools/debugger/test/browser_dbg_watch-expressions.html => browser/devtools/debugger/test/doc_watch-expressions.html
rename : browser/devtools/debugger/test/browser_dbg_with-frame.html => browser/devtools/debugger/test/doc_with-frame.html
This commit is contained in:
Victor Porof 2013-09-13 16:23:16 +03:00
parent d7041cc65a
commit a33ccba979
72 changed files with 606 additions and 577 deletions

View File

@ -1,12 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta charset='utf-8'/>
<title>Browser Debugger Source Map Test</title>
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<script type="text/javascript" src="binary_search.js"></script>
</head>
<body>
</body>
</html>

View File

@ -1 +0,0 @@
function one() { two(); }

View File

@ -1 +0,0 @@
function three() { doDebuggerStatement(); }

View File

@ -1 +0,0 @@
function two() { three(); }

View File

@ -1,27 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta charset='utf-8'/>
<title>Debugger Big Data Test</title>
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<script type="text/javascript">
window.addEventListener("load", function() {
function test(aNumber) {
var buffer = new ArrayBuffer(aNumber);
var z = new Int8Array(buffer);
debugger;
};
function load() {
test(10000);
}
var button = document.querySelector("button");
button.addEventListener("click", load, false);
});
</script>
</head>
<body>
<button>Click me!</button>
</body>
</html>

View File

@ -1,23 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta charset='utf-8'/>
<title>Browser Debugger Blackbox Test</title>
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<script type="text/javascript" src="blackboxing_blackboxme.js"></script>
<script type="text/javascript" src="blackboxing_one.js"></script>
<script type="text/javascript" src="blackboxing_two.js"></script>
<script type="text/javascript" src="blackboxing_three.js"></script>
<script>
function runTest() {
blackboxme(doDebuggerStatement);
}
function doDebuggerStatement() {
debugger;
}
</script>
</head>
<body>
</body>
</html>

View File

@ -1,20 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'/>
<script type="text/javascript">
function runDebuggerStatement() {
debugger;
}
function myFunction() {
var a = 1;
debugger;
}
</script>
</head>
<body>
<button type="button" onclick="myFunction()">Run</button>
</body>
</html>

View File

@ -1,48 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta charset='utf-8'/>
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<script type="application/javascript;version=1.7"/>
let output;
function init() {
output = document.querySelector("input");
output.value = "";
}
function doit() {
debugger;
stepIntoMe(); // step in
output.value = "dbg continue";
debugger;
}
function stepIntoMe() {
output.value = "step in"; // step in
stepOverMe(); // step over
let x = 0; // step out
output.value = "step out";
}
function stepOverMe() {
output.value = "step over";
}
</script>
</head>
<body onload="init()">
<input type="text" value=""/>
<input type="button" value="DOIT" onclick="doit()"/>
<br />
Use this file to test the following commands:
<ul>
<li>dbg interrupt</li>
<li>dbg continue</li>
<li>dbg step over</li>
<li>dbg step in</li>
<li>dbg step out</li>
</ul>
</body>
</html>

View File

@ -1,19 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Browser GCLI break command test</title>
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<script type="text/javascript">
function firstCall() {
eval("window.line0 = Error().lineNumber; secondCall();");
}
function secondCall() {
eval("debugger;");
}
</script>
</head>
<body>
</body>
</html>

View File

@ -1,18 +0,0 @@
<!DOCTYPE HTML>
<html>
<head><meta charset='utf-8'/><title>Browser Debugger Test Tab</title>
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<script type="text/javascript">
function runDebuggerStatement()
{
debugger;
}
</script>
</head>
<body></body>
</html>

View File

@ -1,29 +0,0 @@
<!DOCTYPE HTML>
<html>
<head><meta charset='utf-8'/><title>Browser Debugger Test Tab</title>
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<script type="text/javascript">
var a = function() {
return function() {
debugger;
}
}
var anon = a();
anon.displayName = "anonFunc";
var inferred = a();
function evalCall() {
eval("anon();");
eval("inferred();");
}
</script>
</head>
<body></body>
</html>

View File

@ -1,36 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta charset='utf-8'/>
<title>Debugger Function Call Parameter Test</title>
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<script type="text/javascript">
window.addEventListener("load", function() {
function test(aArg, bArg, cArg, dArg, eArg, fArg) {
var a = 1;
var b = { a: a };
var c = { a: 1, b: "beta", c: true, d: b };
var myVar = {
_prop: 42,
get prop() { return this._prop; },
set prop(val) { this._prop = val; }
};
debugger;
}
function load() {
var a = { a: 1, b: "beta", c: true };
var e = eval("test(a, 'beta', 3, false, null)");
}
var button = document.querySelector("button");
button.addEventListener("click", load, false);
var buttonAsProto = Object.create(button);
});
</script>
</head>
<body>
<button>Click me!</button>
</body>
</html>

View File

@ -1,17 +0,0 @@
<!DOCTYPE HTML>
<html>
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<head>
<meta charset='utf-8'/>
<title>Browser Debugger Function Search</title>
<script type="text/javascript" src="test-function-search-01.js"></script>
<script type="text/javascript" src="test-function-search-02.js"></script>
<script type="text/javascript" src="test-function-search-03.js"></script>
</head>
<body>
<p>Peanut butter jelly time!</p>
</body>
</html>

View File

@ -1,29 +0,0 @@
<!DOCTYPE HTML>
<html>
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<head>
<meta charset='utf-8'/>
<title>Browser Debugger Function Search</title>
<script type="text/javascript" src="test-function-search-01.js"></script>
<script type="text/javascript" src="test-function-search-02.js"></script>
<script type="text/javascript" src="test-function-search-03.js"></script>
</head>
<body>
<p>Peanut butter jelly time!</p>
<script type="text/javascript;version=1.8">
function inline() {}
let arrow = () => {}
let foo = bar => {}
let foo2 = bar2 = baz2 => 42;
setTimeout((foo, bar, baz) => {});
setTimeout((foo, bar, baz) => 42);
</script>
</body>
</html>

View File

@ -1,12 +0,0 @@
<!DOCTYPE HTML>
<html>
<head><meta charset='utf-8'/><title>Browser Debugger IFrame Test Tab</title>
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
</head>
<body>
<iframe src="browser_dbg_debuggerstatement.html"></iframe>
</body>
</html>

View File

@ -1,30 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta charset='utf-8'/>
<title>Debugger Pause on Exceptions Test</title>
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
</head>
<body>
<button>Click me!</button>
<ul></ul>
</body>
<script type="text/javascript">
window.addEventListener("load", function() {
function load() {
try {
debugger;
throw new Error("boom");
} catch (e) {
var list = document.querySelector("ul");
var item = document.createElement("li");
item.innerHTML = e.message;
list.appendChild(item);
}
}
var button = document.querySelector("button");
button.addEventListener("click", load, false);
});
</script>
</html>

View File

@ -1,13 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta charset='utf-8'/>
<title>Browser Debugger Script Switching Test</title>
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<script type="text/javascript" src="test-script-switching-01.js"></script>
<script type="text/javascript" src="test-script-switching-02.js?foo=bar,baz|lol"></script>
</head>
<body>
</body>
</html>

View File

@ -1,14 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta charset='utf-8'/>
<title>Browser Debugger Script Switching Test</title>
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<script type="text/javascript" src="test-script-switching-01.js"></script>
<script type="text/javascript" src="test-script-switching-02.js"></script>
</head>
<body>
<button onclick="firstCall()">Click me!</button>
</body>
</html>

View File

@ -1,32 +0,0 @@
<!DOCTYPE HTML>
<html>
<head><meta charset='utf-8'/><title>Browser Debugger Test Tab</title>
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<script type="text/javascript">
function simpleCall() {
debugger;
}
function evalCall() {
eval("debugger;");
}
var gRecurseLimit = 100;
var gRecurseDepth = 0;
function recurse() {
if (++gRecurseDepth == gRecurseLimit) {
debugger;
gRecurseDepth = 0;
return;
}
recurse();
}
</script>
</head>
<body></body>
</html>

View File

@ -1,11 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta charset='utf-8'/>
<title>Browser Debugger Test Tab</title>
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
</head>
<body>
</body>
</html>

View File

@ -1,11 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta charset='utf-8'/>
<title>Browser Debugger Test Tab 2</title>
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
</head>
<body>
</body>
</html>

View File

@ -1,16 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta charset='utf-8'/>
<title>Browser Debugger Update Editor Mode Test</title>
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<script type="text/javascript" src="test-script-switching-01.js?q=a"></script>
<script type="text/javascript" src="test-editor-mode?a=b"></script>
<script type="text/javascript">
function banana() { }
</script>
</head>
<body>
</body>
</html>

View File

@ -1,33 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta charset='utf-8'/>
<title>Debugger Function Call Parameter Test</title>
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<script type="text/javascript">
window.addEventListener("load", function() {
function test(aNumber) {
var a, obj = { one: 1, two: 2 };
var r = aNumber;
with (Math) {
a = PI * r * r;
with (obj) {
var foo = two * PI;
debugger;
}
}
};
function load() {
test(10);
}
var button = document.querySelector("button");
button.addEventListener("click", load, false);
});
</script>
</head>
<body>
<button>Click me!</button>
</body>
</html>

View File

@ -25,5 +25,5 @@
}).call(this);
/*
//# sourceMappingURL=binary_search.map
//# sourceMappingURL=code_binary_search.map
*/

View File

@ -1,10 +1,10 @@
{
"version": 3,
"file": "binary_search.js",
"file": "code_binary_search.js",
"sourceRoot": "",
"sources": [
"binary_search.coffee"
"code_binary_search.coffee"
],
"names": [],
"mappings": ";AACA;CAAA;CAAA,CAAA,CAAuB,EAAA,CAAjB,GAAkB,IAAxB;CAEE,OAAA,UAAA;CAAA,EAAQ,CAAR,CAAA;CAAA,EACQ,CAAR,CAAa,CAAL;CADR,EAEQ,CAAR,CAAA;CAEA,EAA0C,CAAR,CAAtB,MAAN;CAGJ,EAA6B,CAAR,CAAA,CAArB;CAAA,EAAQ,CAAR,CAAQ,GAAR;QAAA;CACA,EAA6B,CAAR,CAAA,CAArB;CAAA,EAAQ,EAAR,GAAA;QADA;CAAA,EAIQ,CAAI,CAAZ,CAAA;CAXF,IAIA;CAUA,GAAA,CAAS;CAAT,YAA8B;MAA9B;AAA0C,CAAD,YAAA;MAhBpB;CAAvB,EAAuB;CAAvB"
}
}

View File

@ -0,0 +1,4 @@
/* Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ */
function one() { two(); }

View File

@ -0,0 +1,4 @@
/* Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ */
function three() { doDebuggerStatement(); }

View File

@ -0,0 +1,4 @@
/* Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ */
function two() { three(); }

View File

@ -38,8 +38,8 @@ function arithmetic() {
//
// --compilation_level WHITESPACE_ONLY
// --source_map_format V3
// --create_source_map math.map
// --js_output_file math.min.js
// --create_source_map code_math.map
// --js_output_file code_math.min.js
//
// And then append the sourceMappingURL comment directive to math.min.js
// And then append the sourceMappingURL comment directive to code_math.min.js
// manually.

View File

@ -1,8 +1,8 @@
{
"version":3,
"file":"math.min.js",
"file":"code_math.min.js",
"lineCount":1,
"mappings":"AAAAA,QAASA,IAAG,CAACC,CAAD,CAAIC,CAAJ,CAAOC,CAAP,CAAU,CACpB,IAAIC,OAASH,CAATG,CAAaF,CACjB,OAAOC,EAAA,CAAEC,MAAF,CAFa,CAKtBC,QAASA,IAAG,CAACJ,CAAD,CAAIC,CAAJ,CAAOC,CAAP,CAAU,CACpB,IAAIC,OAASH,CAATG,CAAaF,CACjB,OAAOC,EAAA,CAAEC,MAAF,CAFa,CAKtBE,QAASA,IAAG,CAACL,CAAD,CAAIC,CAAJ,CAAOC,CAAP,CAAU,CACpB,IAAIC,OAASH,CAATG,CAAaF,CACjB,OAAOC,EAAA,CAAEC,MAAF,CAFa,CAKtBG,QAASA,IAAG,CAACN,CAAD,CAAIC,CAAJ,CAAOC,CAAP,CAAU,CACpB,IAAIC,OAASH,CAATG,CAAaF,CACjB,OAAOC,EAAA,CAAEC,MAAF,CAFa,CAKtBI,QAASA,WAAU,EAAG,CACpBR,GAAA,CAAI,CAAJ,CAAO,CAAP,CAAU,QAAS,CAACC,CAAD,CAAI,CAErBI,GAAA,CAAIJ,CAAJ,CAAO,CAAP,CAAU,QAAS,CAACC,CAAD,CAAI,CAErBI,GAAA,CAAIJ,CAAJ,CAAO,CAAP,CAAU,QAAS,CAACO,CAAD,CAAI,CAErBF,GAAA,CAAIE,CAAJ,CAAO,CAAP,CAAU,QAAS,CAACC,CAAD,CAAI,CAErBC,OAAAC,IAAA,CAAYF,CAAZ,CAFqB,CAAvB,CAFqB,CAAvB,CAFqB,CAAvB,CAFqB,CAAvB,CADoB;",
"sources":["math.js"],
"sources":["code_math.js"],
"names":["add","a","b","k","result","sub","mul","div","arithmetic","c","d","console","log"]
}

View File

@ -1,2 +1,2 @@
function add(a,b,k){var result=a+b;return k(result)}function sub(a,b,k){var result=a-b;return k(result)}function mul(a,b,k){var result=a*b;return k(result)}function div(a,b,k){var result=a/b;return k(result)}function arithmetic(){add(4,4,function(a){sub(a,2,function(b){mul(b,3,function(c){div(c,2,function(d){console.log(d)})})})})};
//@ sourceMappingURL=math.map
//@ sourceMappingURL=code_math.map

View File

@ -2,7 +2,7 @@
http://creativecommons.org/publicdomain/zero/1.0/ */
function secondCall() {
// This comment is useful for browser_dbg_select-line.js.
// This comment is useful:
eval("debugger;");
function foo() {}
if (true) {

View File

@ -0,0 +1,15 @@
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>Debugger test page</title>
</head>
<body>
<script type="text/javascript" src="code_binary_search.js"></script>
</body>
</html>

View File

@ -0,0 +1,26 @@
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>Debugger test page</title>
</head>
<body>
<script type="text/javascript" src="code_blackboxing_blackboxme.js"></script>
<script type="text/javascript" src="code_blackboxing_one.js"></script>
<script type="text/javascript" src="code_blackboxing_two.js"></script>
<script type="text/javascript" src="code_blackboxing_three.js"></script>
<script>
function runTest() {
blackboxme(doDebuggerStatement);
}
function doDebuggerStatement() {
debugger;
}
</script>
</body>
</html>

View File

@ -0,0 +1,22 @@
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>Debugger test page</title>
</head>
<body>
<script type="text/javascript">
function firstCall() {
eval("window.gLineNumber = Error().lineNumber; secondCall();");
}
function secondCall() {
eval("debugger;");
}
</script>
</body>
</html>

View File

@ -0,0 +1,40 @@
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>Debugger test page</title>
</head>
<body>
<input type="text" value=""/>
<input type="button" value="Click me!" onclick="test()"/>
<script type="application/javascript;version=1.7">
let output = document.querySelector("input");
output.value = "";
function test() {
debugger;
stepIntoMe(); // step in
output.value = "dbg continue";
debugger;
}
function stepIntoMe() {
output.value = "step in"; // step in
stepOverMe(); // step over
let x = 0; // step out
output.value = "step out";
}
function stepOverMe() {
output.value = "step over";
}
</script>
</body>
</html>

View File

@ -1,10 +1,16 @@
<!DOCTYPE HTML>
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<!doctype html>
<html>
<head>
<meta charset='utf-8'/>
<title>Browser Debugger Conditional Breakpoints Test</title>
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<meta charset="utf-8"/>
<title>Debugger test page</title>
</head>
<body>
<button onclick="ermahgerd()">Click me!</button>
<script type="text/javascript">
function ermahgerd() {
var a = {};
@ -24,7 +30,6 @@
a = "b";
}
</script>
</head>
<body>
</body>
</html>

View File

@ -0,0 +1,20 @@
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>Debugger test page</title>
</head>
<body>
<script type="text/javascript" src="code_script-switching-01.js?a=b"></script>
<script type="text/javascript" src="code_test-editor-mode?c=d"></script>
<script type="text/javascript">
function banana() {
}
</script>
</body>
</html>

View File

@ -0,0 +1,14 @@
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>Empty test page 1</title>
</head>
<body>
</body>
</html>

View File

@ -0,0 +1,14 @@
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>Empty test page 2</title>
</head>
<body>
</body>
</html>

View File

@ -1,10 +1,16 @@
<!DOCTYPE HTML>
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<!doctype html>
<html>
<head>
<meta charset='utf-8'/>
<title>Debugger Test for Event Listeners</title>
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<meta charset="utf-8"/>
<title>Debugger test page</title>
</head>
<body>
<button>Click me!</button>
<input type="text" onchange="changeHandler()">
<script type="text/javascript">
window.addEventListener("load", function onload() {
window.removeEventListener("load", onload);
@ -22,17 +28,16 @@
function keyupHandler(event) {
window.foobar = "keyupHandler";
}
var button = document.querySelector("button");
button.onclick = initialSetup;
var input = document.querySelector("input");
input.addEventListener("keyup", keyupHandler, true);
window.changeHandler = changeHandler;
});
</script>
</head>
<body>
<button>Click me!</button>
<input type="text" onchange="changeHandler()">
</body>
</html>

View File

@ -0,0 +1,37 @@
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>Debugger test page</title>
</head>
<body>
<button onclick="start()">Click me!</button>
<script type="text/javascript">
function test(aArg, bArg, cArg, dArg, eArg, fArg) {
var a = 1;
var b = { a: a };
var c = { a: 1, b: "beta", c: 3, d: false, e: null, f: fArg };
var myVar = {
_prop: 42,
get prop() { return this._prop; },
set prop(val) { this._prop = val; }
};
debugger;
}
function start() {
var a = { a: 1, b: "beta", c: 3, d: false, e: null, f: undefined };
var e = eval("test(a, 'beta', 3, false, null);");
}
var button = document.querySelector("button");
var buttonAsProto = Object.create(button);
</script>
</body>
</html>

View File

@ -0,0 +1,31 @@
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>Debugger test page</title>
</head>
<body>
<script type="text/javascript">
var a = function() {
return function() {
debugger;
}
}
var anon = a();
anon.displayName = "anonFunc";
var inferred = a();
function evalCall() {
eval("anon();");
eval("inferred();");
}
</script>
</body>
</html>

View File

@ -0,0 +1,30 @@
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>Debugger test page</title>
</head>
<body>
<p>Peanut butter jelly time!</p>
<script type="text/javascript" src="code_function-search-01.js"></script>
<script type="text/javascript" src="code_function-search-02.js"></script>
<script type="text/javascript" src="code_function-search-03.js"></script>
<script type="text/javascript;version=1.8">
function inline() {}
let arrow = () => {}
let foo = bar => {}
let foo2 = bar2 = baz2 => 42;
setTimeout((foo, bar, baz) => {});
setTimeout((foo, bar, baz) => 42);
</script>
</body>
</html>

View File

@ -0,0 +1,15 @@
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>Debugger test page</title>
</head>
<body>
<iframe src="doc_inline-debugger-statement.html"></iframe>
</body>
</html>

View File

@ -0,0 +1,22 @@
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>Debugger test page</title>
</head>
<body>
<button onclick="myFunction()">Click me!</button>
<script type="text/javascript" src="code_location-changes.js"></script>
<script type="text/javascript">
function runDebuggerStatement() {
debugger;
}
</script>
</body>
</html>

View File

@ -0,0 +1,21 @@
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>Debugger test page</title>
</head>
<body>
<button>Click me!</button>
<script type="text/javascript">
function runDebuggerStatement() {
debugger;
}
</script>
</body>
</html>

View File

@ -0,0 +1,25 @@
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>Debugger test page</title>
</head>
<body>
<button onclick="myFunction()">Click me!</button>
<script type="text/javascript">
function runDebuggerStatement() {
debugger;
}
function myFunction() {
var a = 1;
debugger;
}
</script>
</body>
</html>

View File

@ -0,0 +1,22 @@
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>Debugger test page</title>
</head>
<body>
<button onclick="test(10000)">Click me!</button>
<script type="text/javascript">
function test(aNumber) {
var buffer = new ArrayBuffer(aNumber);
var z = new Int8Array(buffer);
debugger;
}
</script>
</body>
</html>

View File

@ -0,0 +1,14 @@
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>Debugger test page</title>
</head>
<body>
<script src="code_math.min.js"></script>
</body>
</html>

View File

@ -0,0 +1,35 @@
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>Debugger test page</title>
</head>
<body>
<button>Click me!</button>
<ul></ul>
<script type="text/javascript">
window.addEventListener("load", function() {
function test() {
try {
throw new Error("boom");
} catch (e) {
var list = document.querySelector("ul");
var item = document.createElement("li");
item.innerHTML = e.message;
list.appendChild(item);
} finally {
debugger;
}
}
var button = document.querySelector("button");
button.addEventListener("click", test, false);
});
</script>
</body>
</html>

View File

@ -0,0 +1,35 @@
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>Debugger test page</title>
</head>
<body>
<script type="text/javascript">
function simpleCall() {
debugger;
}
function evalCall() {
eval("debugger;");
}
var gRecurseLimit = 100;
var gRecurseDepth = 0;
function recurse() {
if (++gRecurseDepth == gRecurseLimit) {
debugger;
gRecurseDepth = 0;
return;
}
recurse();
}
</script>
</body>
</html>

View File

@ -0,0 +1,18 @@
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>Debugger test page</title>
</head>
<body>
<button onclick="firstCall()">Click me!</button>
<script type="text/javascript" src="code_script-switching-01.js"></script>
<script type="text/javascript" src="code_script-switching-02.js"></script>
</body>
</html>

View File

@ -0,0 +1,18 @@
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>Debugger test page</title>
</head>
<body>
<button onclick="firstCall()">Click me!</button>
<script type="text/javascript" src="code_script-switching-01.js"></script>
<script type="text/javascript" src="code_script-switching-02.js?foo=bar,baz|lol"></script>
</body>
</html>

View File

@ -0,0 +1,42 @@
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>Debugger test page</title>
</head>
<body>
<button id="return">Return me!</button>
<button id="throw">Throw me!</button>
<script type="text/javascript">
function normal(aArg) {
debugger;
var r = 10;
return r;
}
function error(aArg) {
function inner(aArg) {
debugger;
var r = 10;
throw "boom";
return r;
}
try {
inner(aArg);
} catch (e) {}
}
var normalBtn = document.getElementById("return");
normalBtn.addEventListener("click", normal, false);
var throwBtn = document.getElementById("throw");
throwBtn.addEventListener("click", error, false);
</script>
</body>
</html>

View File

@ -1,10 +1,14 @@
<!DOCTYPE HTML>
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<!doctype html>
<html>
<head>
<meta charset='utf-8'/>
<title>Browser Debugger Watch Expressions Test</title>
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<meta charset="utf-8"/>
<title>Debugger test page</title>
</head>
<body>
<script type="text/javascript">
function test() {
ermahgerd.call({ canada: new String("eh") });
@ -20,8 +24,6 @@
}("sensational"));
}
</script>
</head>
<body>
</body>
</html>

View File

@ -0,0 +1,29 @@
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>Debugger test page</title>
</head>
<body>
<button onclick="test(10)">Click me!</button>
<script type="text/javascript">
function test(aNumber) {
var a, obj = { one: 1, two: 2 };
var r = aNumber;
with (Math) {
a = PI * r * r;
with (obj) {
var foo = two * PI;
debugger;
}
}
}
</script>
</body>
</html>

View File

@ -1,6 +0,0 @@
<!DOCTYPE html>
<html>
<body>
<script src="math.min.js"></script>
</body>
</html>

View File

@ -1,17 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'/>
<script type="text/javascript" src="test-location-changes-bp.js"></script>
<script type="text/javascript">
function runDebuggerStatement() {
debugger;
}
</script>
</head>
<body>
<button type="button" onclick="myFunction()">Run</button>
</body>
</html>

View File

@ -1,27 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta charset='utf-8'/>
<title>Debugger Pause on Exceptions After Reload Test</title>
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
</head>
<body>
<ul></ul>
</body>
<script type="text/javascript">
window.addEventListener("load", function() {
function load() {
try {
throw new Error("boom");
} catch (e) {
var list = document.querySelector("ul");
var item = document.createElement("li");
item.innerHTML = e.message;
list.appendChild(item);
}
}
load();
});
</script>
</html>

View File

@ -1,37 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta charset='utf-8'/>
<title>Debugger Step Out Return Value Test</title>
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
</head>
<body>
<button id="return">return</button>
<button id="throw">throw</button>
</body>
<script type="text/javascript">
window.addEventListener("load", function() {
function normal(aArg) {
debugger;
var r = 10;
return r;
}
function error(aArg) {
function inner(aArg) {
debugger;
var r = 10;
throw "boom";
return r;
}
try {
inner(aArg);
} catch (e) {}
}
var button = document.getElementById("return");
button.addEventListener("click", normal, false);
button = document.getElementById("throw");
button.addEventListener("click", error, false);
});
</script>
</html>

View File

@ -8,7 +8,7 @@ function TestActor1(aConnection, aTab)
}
TestActor1.prototype = {
actorPrefix: "testone",
actorPrefix: "test_one",
grip: function TA1_grip() {
return { actor: this.actorID,