Changeset 83333 in webkit
- Timestamp:
- Apr 8, 2011 1:14:54 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r83328 r83333 1 2011-04-08 Dominic Cooney <dominicc@google.com> 2 3 Reviewed by Adam Roben. 4 5 layoutTestController.shadowRoot returns null, not undefined, when 6 its argument is invalid. 7 https://bugs.webkit.org/show_bug.cgi?id=58121 8 9 Update the test to expect null and not undefined. 10 11 * fast/dom/HTMLKeygenElement/keygen-expected.txt: 12 * fast/dom/HTMLKeygenElement/keygen.html: 13 * platform/chromium/test_expectations.txt: unskip keygen.html 14 1 15 2011-04-08 Ryosuke Niwa <rniwa@webkit.org> 2 16 -
trunk/LayoutTests/fast/dom/HTMLKeygenElement/keygen-expected.txt
r83256 r83333 4 4 PASS keygen.options is undefined 5 5 PASS shadow.firstChild.tagName is "SELECT" 6 PASS layoutTestController.shadowRoot(shadow) is undefined6 PASS layoutTestController.shadowRoot(shadow) is null 7 7 PASS layoutTestController.shadowRoot(shadow.firstChild) is null 8 8 PASS successfullyParsed is true -
trunk/LayoutTests/fast/dom/HTMLKeygenElement/keygen.html
r83256 r83333 17 17 var shadow = layoutTestController.shadowRoot(keygen); 18 18 shouldBe('shadow.firstChild.tagName', '"SELECT"'); 19 shouldBe('layoutTestController.shadowRoot(shadow)', ' undefined');19 shouldBe('layoutTestController.shadowRoot(shadow)', 'null'); 20 20 shouldBe('layoutTestController.shadowRoot(shadow.firstChild)', 'null'); 21 21 } -
trunk/LayoutTests/platform/chromium/test_expectations.txt
r83318 r83333 3246 3246 BUGWK57259 : http/tests/misc/link-rel-icon-beforeload.html = FAIL PASS 3247 3247 3248 // Unskip when Chromium DRT layoutTestController implements shadowRoot accessor3249 BUGWK56573 : fast/dom/HTMLKeygenElement/keygen.html = FAIL3250 3251 3248 // This test is very flaky on Mac and a little flaky on Win and Linux. 3252 3249 BUGXXX : media/video-delay-load-event.html = PASS TEXT -
trunk/Source/WebKit/gtk/ChangeLog
r83272 r83333 1 2011-04-08 Dominic Cooney <dominicc@google.com> 2 3 Reviewed by Adam Roben. 4 5 Make layoutTestController.shadowRoot return null, not undefined, 6 when its argument is invalid. 7 https://bugs.webkit.org/show_bug.cgi?id=58121 8 9 * WebCoreSupport/DumpRenderTreeSupportGtk.cpp: 10 (DumpRenderTreeSupportGtk::shadowRoot): 11 1 12 2011-04-08 Dominic Cooney <dominicc@google.com> 2 13 -
trunk/Source/WebKit/gtk/WebCoreSupport/DumpRenderTreeSupportGtk.cpp
r83272 r83333 644 644 Element* element = toElement(toJS(exec, value)); 645 645 if (!element) 646 return JSValueMake Undefined(context);646 return JSValueMakeNull(context); 647 647 648 648 return toRef(exec, toJS(exec, element->shadowRoot())); -
trunk/Tools/ChangeLog
r83330 r83333 1 2011-04-08 Dominic Cooney <dominicc@google.com> 2 3 Reviewed by Adam Roben. 4 5 Make layoutTestController.shadowRoot return null, not undefined, 6 when its argument is invalid. 7 https://bugs.webkit.org/show_bug.cgi?id=58121 8 9 * DumpRenderTree/mac/LayoutTestControllerMac.mm: 10 (LayoutTestController::shadowRoot): 11 * WebKitTestRunner/InjectedBundle/LayoutTestController.cpp: 12 (WTR::LayoutTestController::shadowRoot): 13 1 14 2011-04-08 Dirk Pranke <dpranke@chromium.org> 2 15 -
trunk/Tools/DumpRenderTree/mac/LayoutTestControllerMac.mm
r82536 r83333 1073 1073 DOMElement *element = [DOMElement _DOMElementFromJSContext:context value:jsElement]; 1074 1074 if (!element) 1075 return JSValueMake Undefined(context);1075 return JSValueMakeNull(context); 1076 1076 return [element _shadowRoot:context]; 1077 1077 } -
trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.cpp
r83270 r83333 361 361 362 362 if (!element || !JSValueIsObject(context, element)) 363 return JSValueMake Undefined(context);363 return JSValueMakeNull(context); 364 364 365 365 WKRetainPtr<WKBundleNodeHandleRef> domElement = adoptWK(WKBundleNodeHandleCreate(context, const_cast<JSObjectRef>(element))); 366 366 if (!domElement) 367 return JSValueMake Undefined(context);367 return JSValueMakeNull(context); 368 368 369 369 WKRetainPtr<WKBundleNodeHandleRef> shadowRootDOMElement = adoptWK(WKBundleNodeHandleCopyElementShadowRoot(domElement.get()));
Note: See TracChangeset
for help on using the changeset viewer.