2010-09-09 Andrey Kosyakov <caseq@chromium.org>
authorcaseq@chromium.org <caseq@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 9 Sep 2010 14:51:29 +0000 (14:51 +0000)
committercaseq@chromium.org <caseq@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 9 Sep 2010 14:51:29 +0000 (14:51 +0000)
commite37438fe6f258f61a70e63fae602727b38eedfd4
tree7a1762df057903b578ff2754e3c8357dc5c18a4c
parenteee82b7d49161d13594644ab03a788827c58bc6d
2010-09-09  Andrey Kosyakov  <caseq@chromium.org>

        Reviewed by Yury Semikhatsky.

        Web Inspector: use string representation of resource type in extension API
        Fixed Resoruce.Type.toString() to handle Resource.Type.Media.
        https://bugs.webkit.org/show_bug.cgi?id=45286

        Test: inspector/extensions-resources.html

        * English.lproj/localizedStrings.js: Added "media".
        * inspector/front-end/ExtensionServer.js: Added webInspector.resources.Types. Return resource types as strings.
        (WebInspector.ExtensionServer.prototype._convertResource):
        (WebInspector.ExtensionServer.prototype._buildExtensionAPIInjectedScript):
        * inspector/front-end/Resource.js: Added toUIString(), changed toString() to return locale-independent representation.
        (WebInspector.Resource.Type.toUIString):
        (WebInspector.Resource.Type.toString):

2010-09-09  Andrey Kosyakov  <caseq@chromium.org>

        Reviewed by Yury Semikhatsky.

        Web Inspector: use string representation of resource type in extension API
        Split resource tests from the misc. extension API tests, added more resource types.
        https://bugs.webkit.org/show_bug.cgi?id=45286

        * inspector/extensions-api-expected.txt:
        * inspector/extensions-events-expected.txt:
        * inspector/extensions-expected.txt:
        * inspector/extensions-resources-expected.txt: Added.
        * inspector/extensions-resources.html: Added.
        * inspector/extensions.html:
        * inspector/resources/Ahem.ttf: Copied from LayoutTests/fast/css/resources/Ahem.ttf.
        * inspector/resources/abe.png: Copied from LayoutTests/editing/resources/abe.png.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@67084 268f45cc-cd09-0410-ab3c-d52691b4dbfc
13 files changed:
LayoutTests/ChangeLog
LayoutTests/inspector/extensions-api-expected.txt
LayoutTests/inspector/extensions-events-expected.txt
LayoutTests/inspector/extensions-expected.txt
LayoutTests/inspector/extensions-resources-expected.txt [new file with mode: 0644]
LayoutTests/inspector/extensions-resources.html [new file with mode: 0755]
LayoutTests/inspector/extensions.html
LayoutTests/inspector/resources/Ahem.ttf [new file with mode: 0755]
LayoutTests/inspector/resources/abe.png [new file with mode: 0755]
WebCore/ChangeLog
WebCore/English.lproj/localizedStrings.js
WebCore/inspector/front-end/ExtensionServer.js
WebCore/inspector/front-end/Resource.js