Changeset 56067 in webkit


Ignore:
Timestamp:
Mar 16, 2010 9:21:39 AM (14 years ago)
Author:
pfeldman@chromium.org
Message:

2010-03-16 Pavel Feldman <pfeldman@chromium.org>

Not reviewed: inspector http test fix that migrates it to the new inspector api.

  • http/tests/inspector/inspect-iframe-from-different-domain.html:
Location:
trunk/LayoutTests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r56057 r56067  
     12010-03-16  Pavel Feldman  <pfeldman@chromium.org>
     2
     3        Not reviewed: inspector http test fix that migrates it to the new inspector api.
     4
     5        * http/tests/inspector/inspect-iframe-from-different-domain.html:
     6
    172010-03-11  Antonio Gomes  <tonikitoo@webkit.org>
    28
  • trunk/LayoutTests/http/tests/inspector/inspect-iframe-from-different-domain.html

    r54659 r56067  
    6969        WebInspector.panels.elements.focusedDOMNode = domNode;
    7070        testController.runAfterPendingDispatches(function() {
    71             for (var i = 0; i < domNode._matchedCSSRules.length; i++) {
    72                 var rule = domNode._matchedCSSRules[i];
    73                 if (rule.isUser || rule.isUserAgent)
    74                     continue;
    75                 var bg = rule.style.getShorthandValue("background");
    76                 if (bg) {
    77                     testController.notifyDone("background = " + bg);
     71
     72            function callback(styles)
     73            {
     74                if (!styles) {
     75                    testController.notifyDone("Background property not found");
    7876                    return;
    7977                }
     78
     79                for (var i = styles.matchedCSSRules.length - 1; i >= 0; --i) {
     80                    var rule = WebInspector.CSSStyleDeclaration.parseRule(styles.matchedCSSRules[i]);
     81                    if (rule.isUser || rule.isUserAgent)
     82                        continue;
     83                    var bg = rule.style.getShorthandValue("background");
     84                    if (bg) {
     85                        testController.notifyDone("background = " + bg);
     86                        return;
     87                    }
     88                }
     89                   
     90                testController.notifyDone("Background property not found");
    8091            }
    81             testController.notifyDone("Background property not found");
     92
     93            InspectorBackend.getStyles(WebInspector.Callback.wrap(callback), domNode.id, true);
    8294        });
    8395    });
Note: See TracChangeset for help on using the changeset viewer.