Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(444)

Unified Diff: LayoutTests/inspector/sources/debugger/frameworks-jquery.html

Issue 1153923005: DevTools: shard inspector/debugger tests for faster execution. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/inspector/sources/debugger/frameworks-jquery.html
diff --git a/LayoutTests/inspector/sources/debugger/frameworks-jquery.html b/LayoutTests/inspector/sources/debugger/frameworks-jquery.html
deleted file mode 100644
index eff7ebc0e65437f3f84bc97b0578d80430257624..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/sources/debugger/frameworks-jquery.html
+++ /dev/null
@@ -1,85 +0,0 @@
-<html>
-<head>
-<script src="../../../http/tests/inspector/inspector-test.js"></script>
-<script src="../../../http/tests/inspector/debugger-test.js"></script>
-<script src="resources/jquery-1.11.1.min.js"></script>
-<script>
-
-function testFunction()
-{
- var pp = $("p");
- var scripts = $("script");
- pp.on("testevent", onTestEvent1);
- pp.on("testevent", onTestEvent2);
- pp.on("testevent", onTestEvent3);
-
- debugger;
-
- scripts.each(onEachScript);
- pp.trigger("testevent");
-}
-
-function onTestEvent1()
-{
- output("onTestEvent1");
-}
-
-function onTestEvent2()
-{
- output("onTestEvent2");
-}
-
-function onTestEvent3()
-{
- output("onTestEvent3");
-}
-
-function onEachScript(index, script)
-{
- return script.textContent;
-}
-
-function test()
-{
- var frameworkRegexString = "/jquery-1\\.11\\.1\\.min\\.js$";
- WebInspector.settingForTest("skipStackFramesPattern").set(frameworkRegexString);
-
- InspectorTest.startDebuggerTest(step1, true);
-
- function step1()
- {
- InspectorTest.runTestFunctionAndWaitUntilPaused(step2);
- }
-
- function step2()
- {
- var actions = [
- "Print", // "debugger" in testFunction()
- "StepInto", "StepInto", "Print", // entered onEachScript()
- "StepInto", "StepInto", "Print", // again in onEachScript()
- "StepOver", "StepOver", "Print", // again in onEachScript()
- "StepOut", "Print", // last time in onEachScript()
- "StepOut", "Print", // about to execute jQuery.trigger()
- "StepInto", "Print", // onTestEvent1
- "StepOut", "Print", // onTestEvent2
- "StepOver", "StepOver", "Print", // onTestEvent3
- ];
- InspectorTest.waitUntilPausedAndPerformSteppingActions(actions, step3);
- }
-
- function step3()
- {
- InspectorTest.completeDebuggerTest();
- }
-}
-
-</script>
-</head>
-
-<body onload="runTest()">
-<input type='button' onclick='testFunction()' value='Test'/>
-<p>
-Tests framework blackboxing feature on jQuery.
-</p>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698