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

Unified Diff: LayoutTests/inspector/sources/debugger/async-callstack-web-sql.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/async-callstack-web-sql.html
diff --git a/LayoutTests/inspector/sources/debugger/async-callstack-web-sql.html b/LayoutTests/inspector/sources/debugger/async-callstack-web-sql.html
deleted file mode 100644
index 2b282e364ef138845c918c98fac0012a388c5b93..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/sources/debugger/async-callstack-web-sql.html
+++ /dev/null
@@ -1,66 +0,0 @@
-<html>
-<head>
-<script src="../../../http/tests/inspector/inspector-test.js"></script>
-<script src="../../../http/tests/inspector/debugger-test.js"></script>
-<script>
-
-function testFunction()
-{
- setTimeout(openDB);
-}
-
-function onSuccess()
-{
- debugger;
-}
-
-function onError()
-{
- console.error("FAIL: " + new Error().stack);
- debugger;
-}
-
-function openDB()
-{
- var dbSize = 1 * 1024 * 1024; // 1 MB
- var db = openDatabase("async-callstack-web-sql-db", "1.0", "Test DB", dbSize, onOpenDB);
- db.transaction(onCreateTableSQLTransactionCallback, onError, onSuccess);
-}
-
-function onOpenDB()
-{
- // This will be called only once when the database is created.
- // There is no way to delete a database in WebSQL from JavaScript,
- // so test async call stacks in this callback manually.
-}
-
-function onCreateTableSQLTransactionCallback(tx)
-{
- debugger;
- tx.executeSql("CREATE TABLE IF NOT EXISTS tmp(ID INTEGER PRIMARY KEY ASC, added_on DATETIME)", [], onSuccess, onError);
- tx.executeSql("INSERT INTO tmp(added_on) VALUES (?)", [new Date()], onSuccess, onError);
- tx.executeSql("DROP TABLE tmp", [], onDropTable, onError);
-}
-
-function onDropTable()
-{
- debugger;
-}
-
-function test()
-{
- var totalDebuggerStatements = 5;
- var maxAsyncCallStackDepth = 4;
- InspectorTest.runAsyncCallStacksTest(totalDebuggerStatements, maxAsyncCallStackDepth);
-}
-
-</script>
-</head>
-
-<body onload="runTest()">
-<input type='button' onclick='testFunction()' value='Test'/>
-<p>
-Tests asynchronous call stacks for Web SQL.
-</p>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698