Changeset 192098 in webkit
- Timestamp:
- Nov 6, 2015 3:05:55 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/interfaces-expected.txt
r191981 r192098 222 222 CONSOLE MESSAGE: line 1152: Deprecated attempt to access property 'src' on a non-HTMLImageElement object. 223 223 CONSOLE MESSAGE: line 1152: Deprecated attempt to access property 'srcset' on a non-HTMLImageElement object. 224 CONSOLE MESSAGE: line 1152: Deprecated attempt to access property 'sizes' on a non-HTMLImageElement object. 224 225 CONSOLE MESSAGE: line 1152: Deprecated attempt to access property 'crossOrigin' on a non-HTMLImageElement object. 225 226 CONSOLE MESSAGE: line 1152: Deprecated attempt to access property 'useMap' on a non-HTMLImageElement object. … … 2722 2723 [native code] 2723 2724 }" did not throw 2724 FAIL HTMLImageElement interface: attribute sizes assert_true: The prototype object must have a property "sizes" expected true got false 2725 FAIL HTMLImageElement interface: attribute sizes assert_throws: getting property on prototype object must throw TypeError function "function () { 2726 [native code] 2727 }" did not throw 2725 2728 FAIL HTMLImageElement interface: attribute crossOrigin assert_throws: getting property on prototype object must throw TypeError function "function () { 2726 2729 [native code] … … 2774 2777 PASS HTMLImageElement interface: document.createElement("img") must inherit property "src" with the proper type (1) 2775 2778 PASS HTMLImageElement interface: document.createElement("img") must inherit property "srcset" with the proper type (2) 2776 FAIL HTMLImageElement interface: document.createElement("img") must inherit property "sizes" with the proper type (3) assert_inherits: property "sizes" not found in prototype chain 2779 PASS HTMLImageElement interface: document.createElement("img") must inherit property "sizes" with the proper type (3) 2777 2780 PASS HTMLImageElement interface: document.createElement("img") must inherit property "crossOrigin" with the proper type (4) 2778 2781 PASS HTMLImageElement interface: document.createElement("img") must inherit property "useMap" with the proper type (5) … … 2796 2799 PASS HTMLImageElement interface: new Image() must inherit property "src" with the proper type (1) 2797 2800 PASS HTMLImageElement interface: new Image() must inherit property "srcset" with the proper type (2) 2798 FAIL HTMLImageElement interface: new Image() must inherit property "sizes" with the proper type (3) assert_inherits: property "sizes" not found in prototype chain 2801 PASS HTMLImageElement interface: new Image() must inherit property "sizes" with the proper type (3) 2799 2802 PASS HTMLImageElement interface: new Image() must inherit property "crossOrigin" with the proper type (4) 2800 2803 PASS HTMLImageElement interface: new Image() must inherit property "useMap" with the proper type (5) -
trunk/Source/WebCore/ChangeLog
r192094 r192098 1 2015-11-06 Yoav Weiss <yoav@yoav.ws> 2 3 Expose HTMLImageElement sizes attribute in IDL 4 https://bugs.webkit.org/show_bug.cgi?id=150230 5 6 Reviewed by Darin Adler. 7 8 No new tests, but fixed test expectations for exposed interfaces. 9 10 * html/HTMLImageElement.idl: Make sure that `sizes` is exposed as an IDL attribute, to ensure proper feature detection of sizes support. 11 1 12 2015-11-05 Carlos Garcia Campos <cgarcia@igalia.com> 2 13 -
trunk/Source/WebCore/html/HTMLImageElement.idl
r191334 r192098 33 33 [Reflect, URL] attribute DOMString src; 34 34 [Reflect] attribute DOMString srcset; 35 [Reflect] attribute DOMString sizes; 35 36 #if ENABLE_CURRENTSRC 36 [Reflect] attribute DOMString sizes;37 37 readonly attribute DOMString currentSrc; 38 38 #endif
Note: See TracChangeset
for help on using the changeset viewer.