[Webkit-unassigned] [Bug 32492] Missing support for document.createEvent("OrientationEvent")

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 15 09:45:56 PDT 2010


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





--- Comment #5 from Joseph Pecoraro <joepeck at webkit.org>  2010-10-15 09:45:56 PST ---
(From update of attachment 70874)
View in context: https://bugs.webkit.org/attachment.cgi?id=70874&action=review

> LayoutTests/fast/dom/DeviceOrientation/create-event-onorientationchange-expected.txt:11
> +Tests that document.createEvent() works with orientationChange
> +
> +On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
> +
> +
> +
> +
> +
> +PASS successfullyParsed is true
> +
> +TEST COMPLETE

This is rather blank. There is no PASS / FAIL message in the common case.

> LayoutTests/fast/dom/DeviceOrientation/script-tests/create-event-onorientationchange.js:15
> +try {
> +    var event = document.createEvent("OrientationEvent");
> +    event.initEvent("orientationchange", false, false);
> +    window.dispatchEvent(event);
> +} catch(e) {
> +}

I would suggest outputting something in the catch { ... } along the lines of
"Orientation Events don't appear to be enabled or implemented".

I don't know the best way to reduce the overhead of submitting a test which
will only pass behind an ENABLE flag.

-- 
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