Commit e85c8e9c authored by pfeldman@chromium.org's avatar pfeldman@chromium.org

2011-02-15 Pavel Feldman <pfeldman@chromium.org>

        Reviewed by Yury Semikhatsky.

        Web Inspector: test whether inspector gets populated with databases and storages upon opening.
        https://bugs.webkit.org/show_bug.cgi?id=54469

        * http/tests/inspector-enabled/database-open-expected.txt: Added.
        * http/tests/inspector-enabled/database-open.html: Added.
        * http/tests/inspector-enabled/dom-storage-open-expected.txt: Added.
        * http/tests/inspector-enabled/dom-storage-open.html: Added.
2011-02-15  Pavel Feldman  <pfeldman@chromium.org>

        Reviewed by Yury Semikhatsky.

        Web Inspector: test whether inspector gets populated with databases and storages upon opening.
        https://bugs.webkit.org/show_bug.cgi?id=54469

        Tests: http/tests/inspector-enabled/database-open.html
               http/tests/inspector-enabled/dom-storage-open.html

        * inspector/front-end/DOMStorage.js:
        * inspector/front-end/Database.js:
        (WebInspector.DatabaseDispatcher.prototype.addDatabase):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@78581 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent c87d7898
2011-02-15 Pavel Feldman <pfeldman@chromium.org>
Reviewed by Yury Semikhatsky.
Web Inspector: test whether inspector gets populated with databases and storages upon opening.
https://bugs.webkit.org/show_bug.cgi?id=54469
* http/tests/inspector-enabled/database-open-expected.txt: Added.
* http/tests/inspector-enabled/database-open.html: Added.
* http/tests/inspector-enabled/dom-storage-open-expected.txt: Added.
* http/tests/inspector-enabled/dom-storage-open.html: Added.
2011-02-15 Mario Sanchez Prada <msanchez@igalia.com>
Unreviewed, rebaseline of Gtk result.
Tests that Web Inspector gets populated with databases that were opened before inspector is shown.
Name: InspectorDatabaseTest
Version: 1.0
Domain: 127.0.0.1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../inspector/inspector-test.js"></script>
<script>
function onload()
{
if (window.layoutTestController)
layoutTestController.waitUntilDone();
var db = openDatabase("InspectorDatabaseTest", "1.0", "Test of database instrumentation", 1);
if (window.layoutTestController)
layoutTestController.showWebInspector();
runTest();
}
function test()
{
var databases = WebInspector.panels.resources._databases;
for (var i = 0; i < databases.length; ++i) {
InspectorTest.addResult("Name: " + databases[i].name);
InspectorTest.addResult("Version: " + databases[i].version);
InspectorTest.addResult("Domain: " + databases[i].domain);
}
InspectorTest.completeTest();
}
</script>
</head>
<body onload="onload()">
<p>Tests that Web Inspector gets populated with databases that were opened before inspector is shown.</p>
</body>
</html>
Tests that Web Inspector gets populated with DOM storages that were opened before inspector is shown.
Domain: 127.0.0.1
IsLocalStorage: false
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../inspector/inspector-test.js"></script>
<script>
function onload()
{
if (window.layoutTestController)
layoutTestController.waitUntilDone();
window.sessionStorage["inspector"] = "true";
if (window.layoutTestController)
layoutTestController.showWebInspector();
runTest();
}
function test()
{
var storages = WebInspector.panels.resources._domStorage;
for (var i = 0; i < storages.length; ++i) {
InspectorTest.addResult("Domain: " + storages[i].domain);
InspectorTest.addResult("IsLocalStorage: " + storages[i].isLocalStorage);
}
InspectorTest.completeTest();
}
</script>
</head>
<body onload="onload()">
<p>Tests that Web Inspector gets populated with DOM storages that were opened before inspector is shown.</p>
</body>
</html>
Tests that elements panel updates dom tree structure upon setting attribute.
========= Original ========
<div id="node"></div>
===== Set attribute =====
<div id="node" name="value"></div>
=== Removed attribute ===
<div id="node"></div>
2011-02-15 Pavel Feldman <pfeldman@chromium.org>
Reviewed by Yury Semikhatsky.
Web Inspector: test whether inspector gets populated with databases and storages upon opening.
https://bugs.webkit.org/show_bug.cgi?id=54469
Tests: http/tests/inspector-enabled/database-open.html
http/tests/inspector-enabled/dom-storage-open.html
* inspector/front-end/DOMStorage.js:
* inspector/front-end/Database.js:
(WebInspector.DatabaseDispatcher.prototype.addDatabase):
2011-02-15 Andreas Kling <kling@webkit.org>
Reviewed by Darin Adler.
......@@ -39,11 +39,6 @@ WebInspector.DOMStorage.prototype = {
return this._id;
},
get domStorage()
{
return this._domStorage;
},
get domain()
{
return this._domain;
......
......@@ -107,8 +107,6 @@ WebInspector.DatabaseDispatcher._callbacks = {};
WebInspector.DatabaseDispatcher.prototype = {
addDatabase: function(payload)
{
if (!WebInspector.panels.resources)
return;
var database = new WebInspector.Database(
payload.id,
payload.domain,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment