| 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>
|
|
|