[Webkit-unassigned] [Bug 70304] width/height attributes of input element should be supported when the type of the input element is image.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon May 7 00:26:08 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=70304


Kent Tamura <tkent at chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #140485|review?, commit-queue?      |review-, commit-queue-
               Flag|                            |




--- Comment #65 from Kent Tamura <tkent at chromium.org>  2012-05-07 00:26:07 PST ---
(From update of attachment 140485)
View in context: https://bugs.webkit.org/attachment.cgi?id=140485&action=review

> LayoutTests/fast/forms/input-width-height-attributes-without-renderer-loaded-image.html:15
> +<input type="image" id="imageInput" src="resources/green.jpg" style="display:none">
> +<div id="console"></div>
> +<script language="JavaScript">
> +    var e = document.getElementById("imageInput");
> +    shouldBe('e.width', '0');
> +    shouldBe('e.height', '0');
> +    finishJSTest();

This is a test for *loaded* image.  So the test should be asynchronous and need to wait for image loading.

> LayoutTests/fast/forms/input-width-height-attributes-without-renderer-not-loaded-image.html:20
> +    var e = document.getElementById("imageSlow");
> +
> +    document.onreadystatechange = function() {
> +        readyState = document.readyState;
> +        if (readyState == 'complete') {
> +            finishJSTest();
> +        } else if (readyState == 'loading' || readyState == 'interactive') {
> +            shouldBe('e.width', '0');
> +            shouldBe('e.height', '0');

This is a test for *not loaded* image.  So we don't need to make this asynchronous.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list