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

Unified Diff: LayoutTests/storage/websql/private-browsing-noread-nowrite.html

Issue 13861033: Remove Apple's unused implementation of private browsing from WebCore (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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/storage/websql/private-browsing-noread-nowrite.html
diff --git a/LayoutTests/storage/websql/private-browsing-noread-nowrite.html b/LayoutTests/storage/websql/private-browsing-noread-nowrite.html
deleted file mode 100644
index 673a613c16f24a5a2b09c03e37c33b859921b004..0000000000000000000000000000000000000000
--- a/LayoutTests/storage/websql/private-browsing-noread-nowrite.html
+++ /dev/null
@@ -1,102 +0,0 @@
-<html>
-<head>
-<script>
-
-function writeMessageToLog(message)
-{
- document.getElementById("console").innerText += message + "\n";
-}
-
-var setupStatements = [
- "CREATE TABLE IF NOT EXISTS PrivateTest1 (randomData)",
- "INSERT INTO PrivateTest1 VALUES ('somedata')"
-];
-
-var privateBrowsingStatements = [
- "CREATE TABLE IF NOT EXISTS PrivateTest2 (randomData)",
- "DELETE FROM PrivateTest1",
- "DROP TABLE PrivateTest1",
- "INSERT INTO PrivateTest1 VALUES ('somedata')",
- "SELECT * FROM PrivateTest1"
-];
-
-var completed = 0;
-var theTransaction;
-
-function setupSuccessFunction(tx, result)
-{
- ++completed;
- writeMessageToLog("Setup statement " + completed + " completed successfully");
- checkSetupComplete();
-}
-
-function setupErrorFunction(tx, error)
-{
- ++completed;
- writeMessageToLog("Setup statement " + completed + " completed with an error\n" + error.message);
- checkSetupComplete();
-}
-
-function privateBrowsingSuccessFunction(tx, result)
-{
- ++completed;
- writeMessageToLog("Private browsing statement " + completed + " completed successfully");
-}
-
-function privateBrowsingErrorFunction(tx, error)
-{
- ++completed;
- writeMessageToLog("Private browsing statement " + completed + " completed with an error\n" + error.message);
- return false;
-}
-
-function runSetup(transaction)
-{
- theTransaction = transaction;
- for (i in setupStatements)
- theTransaction.executeSql(setupStatements[i], [], setupSuccessFunction, setupErrorFunction);
-}
-
-function checkSetupComplete()
-{
- if (completed == setupStatements.length)
- runPrivateBrowsingTests();
-}
-
-function runPrivateBrowsingTests()
-{
- completed = 0;
-
- if (window.testRunner)
- testRunner.setPrivateBrowsingEnabled(true);
-
- for (i in privateBrowsingStatements)
- theTransaction.executeSql(privateBrowsingStatements[i], [], privateBrowsingSuccessFunction, privateBrowsingErrorFunction);
-}
-
-function endTest()
-{
- writeMessageToLog("Test ended");
-
- if (window.testRunner)
- testRunner.notifyDone();
-}
-
-function runTest()
-{
- if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
- }
-
- var database = openDatabase("PrivateBrowsingNoReadNoWriteTest", "1.0", "Test private browsing no read/write safety", 1);
- database.transaction(runSetup, endTest, endTest);
-}
-
-</script>
-</head>
-<body onload="runTest();">
-This test makes sure that attempts to change the database during private browsing fail.<br>
-<div id="console"></div>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698