Changeset 90355 in webkit


Ignore:
Timestamp:
Jul 4, 2011 2:20:15 AM (13 years ago)
Author:
caseq@chromium.org
Message:

2011-07-04 Andrey Kosyakov <caseq@chromium.org>

Reviewed by Yury Semikhatsky.

Web Inspector: [Extensions API] audit formatter names should begin with create
https://bugs.webkit.org/show_bug.cgi?id=63802

  • inspector/extensions/extensions-audits-api-expected.txt:
  • inspector/extensions/extensions-audits.html:

2011-07-04 Andrey Kosyakov <caseq@chromium.org>

Reviewed by Yury Semikhatsky.

Web Inspector: [Extensions API] audit formatter names should begin with create
https://bugs.webkit.org/show_bug.cgi?id=63802

  • inspector/front-end/ExtensionAPI.js: (WebInspector.injectedExtensionAPI.AuditResultImpl):
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r90354 r90355  
     12011-07-04  Andrey Kosyakov  <caseq@chromium.org>
     2
     3        Reviewed by Yury Semikhatsky.
     4
     5        Web Inspector: [Extensions API] audit formatter names should begin with create
     6        https://bugs.webkit.org/show_bug.cgi?id=63802
     7
     8        * inspector/extensions/extensions-audits-api-expected.txt:
     9        * inspector/extensions/extensions-audits.html:
     10
    1112011-07-04  Yuta Kitamura  <yutak@chromium.org>
    212
  • trunk/LayoutTests/inspector/extensions/extensions-audits-api-expected.txt

    r78535 r90355  
    1414category.onAuditStarted fired, results dump follows:
    1515{
    16     url : <function>
    17     snippet : <function>
    18     text : <function>
     16    createURL : <function>
     17    createSnippet : <function>
     18    createText : <function>
    1919    addResult : <function>
    2020    createResult : <function>
  • trunk/LayoutTests/inspector/extensions/extensions-audits.html

    r82713 r90355  
    1717
    1818        var node = results.createResult("Subtree");
    19         node.addChild("Some url: ", results.url("http://www.webkit.org", "WebKit"), " more text ", results.url("http://www.google.com"));
     19        node.addChild("Some url: ", results.createURL("http://www.webkit.org", "WebKit"), " more text ", results.createURL("http://www.google.com"));
    2020        var nestedNode = node.addChild("... and a snippet");
    2121        nestedNode.expanded = true;
    22         nestedNode.addChild(results.snippet("function rand()\n{\n    return 4;\n}"));
     22        nestedNode.addChild(results.createSnippet("function rand()\n{\n    return 4;\n}"));
    2323
    2424        results.addResult("Rule with details subtree (1)", "This rule has a lot of details", results.Severity.Warning, node);
  • trunk/Source/WebCore/ChangeLog

    r90351 r90355  
     12011-07-04  Andrey Kosyakov  <caseq@chromium.org>
     2
     3        Reviewed by Yury Semikhatsky.
     4
     5        Web Inspector: [Extensions API] audit formatter names should begin with create
     6        https://bugs.webkit.org/show_bug.cgi?id=63802
     7
     8        * inspector/front-end/ExtensionAPI.js:
     9        (WebInspector.injectedExtensionAPI.AuditResultImpl):
     10
    1112011-07-03  Dominic Cooney  <dominicc@chromium.org>
    212
  • trunk/Source/WebCore/inspector/front-end/ExtensionAPI.js

    r87399 r90355  
    288288    this._id = id;
    289289
    290     var formatterTypes = [
    291         "url",
    292         "snippet",
    293         "text"
    294     ];
    295     for (var i = 0; i < formatterTypes.length; ++i)
    296         this[formatterTypes[i]] = bind(this._nodeFactory, null, formatterTypes[i]);
     290    this.createURL = bind(this._nodeFactory, null, "url");
     291    this.createSnippet = bind(this._nodeFactory, null, "snippet");
     292    this.createText = bind(this._nodeFactory, null, "text");
    297293}
    298294
Note: See TracChangeset for help on using the changeset viewer.