Commit 5eb3347d authored by yurys@chromium.org's avatar yurys@chromium.org

2011-05-03 Yury Semikhatsky <yurys@chromium.org>

        Reviewed by Pavel Feldman.

        Web Inspector: remove special logic for type of document.__proto__
        https://bugs.webkit.org/show_bug.cgi?id=60014

        * inspector/console/console-log-document-proto-expected.txt: Added.
        * inspector/console/console-log-document-proto.html: Added.
        * inspector/console/console-log-toString-object-expected.txt:
        * inspector/console/console-log-toString-object.html:
2011-05-03  Yury Semikhatsky  <yurys@chromium.org>

        Reviewed by Pavel Feldman.

        Web Inspector: remove special logic for type of document.__proto__
        https://bugs.webkit.org/show_bug.cgi?id=60014

        Test: inspector/console/console-log-document-proto.html

        * inspector/InjectedScriptSource.js: removed unnecessary check nodeType === undefined

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@85596 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 4643e48a
2011-05-03 Yury Semikhatsky <yurys@chromium.org>
Reviewed by Pavel Feldman.
Web Inspector: remove special logic for type of document.__proto__
https://bugs.webkit.org/show_bug.cgi?id=60014
* inspector/console/console-log-document-proto-expected.txt: Added.
* inspector/console/console-log-document-proto.html: Added.
* inspector/console/console-log-toString-object-expected.txt:
* inspector/console/console-log-toString-object.html:
2011-05-03 Philippe Normand <pnormand@igalia.com>
Unreviewed, unskip now passing test.
CONSOLE MESSAGE: line 6: [object HTMLDocumentPrototype]
Test that console.log(document.__proto__) won't result in an exception when the message is formatted in the inspector.Bug 27169.
console-log-document-proto.html:6HTMLDocumentPrototype
<html>
<head>
<script src="../../http/tests/inspector/inspector-test.js"></script>
<script src="../../http/tests/inspector/console-test.js"></script>
<script>
console.log(document.__proto__);
function test()
{
InspectorTest.dumpConsoleMessages();
InspectorTest.completeTest();
}
</script>
</head>
<body onload="runTest()">
<p>
Test that console.log(document.__proto__) won't result in an exception when the message
is formatted in the inspector.<a bug="https://bugs.webkit.org/show_bug.cgi?id=27169">Bug 27169.</a>
</p>
</body>
</html>
File mode changed from 100755 to 100644
2011-05-03 Yury Semikhatsky <yurys@chromium.org>
Reviewed by Pavel Feldman.
Web Inspector: remove special logic for type of document.__proto__
https://bugs.webkit.org/show_bug.cgi?id=60014
Test: inspector/console/console-log-document-proto.html
* inspector/InjectedScriptSource.js: removed unnecessary check nodeType === undefined
2011-05-03 Pavel Feldman <pfeldman@google.com>
Not reviewed: fixed typo in inspector style.
......@@ -367,7 +367,7 @@ InjectedScript.prototype = {
return type;
if (obj instanceof inspectedWindow.Node)
return (obj.nodeType === undefined ? type : "node");
return "node";
if (obj instanceof inspectedWindow.String)
return "string";
if (obj instanceof inspectedWindow.Array)
......
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