Ticket #2529432 (closed defect)

Reporter


Reid Burke
Opened: 10/13/10
Last modified: 01/14/11
Status: closed
Type: defect
Resolution: fixed

Owner


Adam Moore
Target Release: 3.3.0
Priority: P3 (normal)
Summary: Multiple Event-related failures on IE 9
Description:

A common Event problem may be the cause of widespread test failures across components for IE 9.

These are a sample of test failures:

✖ yuitests1286931021379 on Internet Explorer (9.0) / Windows
5 passed, 12 failed
in DOM Event Tests
test_on_with_string click handler via Y.on didn't work when passed a string.
Expected: true (boolean)
Actual: false (boolean)
test_on_with_node click handler via Y.on didn't work when passed a node.
Expected: true (boolean)
Actual: false (boolean)
test_node_on click handler didn't work
Expected: true (boolean)
Actual: false (boolean)
test_nodelist_on click handler didn't work
Expected: 1 (number)
Actual: 0 (number)
test_y_on_with_nodelist click handler didn't work
Expected: 1 (number)
Actual: 0 (number)
test_y_detach_with_nodelist click handler didn't work
Expected: 1 (number)
Actual: 0 (number)
test_y_detach_with_array click handler didn't work
Expected: 1 (number)
Actual: 0 (number)
test_y_on_with_selector_multiple_match click handler didn't work
Expected: 1 (number)
Actual: 0 (number)
test_y_on_with_htmlelementcollection click handler didn't work
Expected: 1 (number)
Actual: 0 (number)
test_detach_by_sig detach by signature was a failure
Expected: 1 (number)
Actual: 0 (number)
test_purge Values should be equal.
Expected: 1 (number)
Actual: 0 (number)
test_categories Values should be equal.
Expected: 2 (number)
Actual: 0 (number)

✖ Delegate on Internet Explorer (9.0) / Windows
4 passed, 15 failed
in Event Delegate Tests
test_simple_delegate_for_anchors simple delegation fails, mod1 should pickup the event and test target [firstlink]
Expected: true (boolean)
Actual: false (boolean)
test_multiple_selectors event delegate works but the matched element is an incorrect node, should be the matching node
Expected: undefined (undefined)
Actual: DIV#mod-header ms__id5287 (object)
test_filter_function Values should be the same.
Expected: 1 (number)
Actual: 0 (number)
test_document_as_container simple delegation fails, mod1 should pickup the event and test target [firstlink]
Expected: true (boolean)
Actual: false (boolean)
test_checking_delegation_target delegation fails for an image within an anchor, mod1 should pickup the event and test target [secondlink]
Expected: true (boolean)
Actual: false (boolean)
test_multiple_selectors_one_match multiple selectors fails, delegate should be able to match different selectors
Expected: true (boolean)
Actual: false (boolean)
test_multiple_delegate_matches first match fail, delegate should be able to match [a]
Expected: true (boolean)
Actual: false (boolean)
test_bubble_up_after_delegate first match fail, delegate should be able to match [a]
Expected: true (boolean)
Actual: false (boolean)
test_bubble_up_after_delegate_halt first match fail, delegate should be able to match [a]
Expected: true (boolean)
Actual: false (boolean)
test_direct_descendant_combinator The currentTarget is an incorrect node, should be the matching node.
Expected: list-2-li-3 (string)
Actual: null (object)
test_multiple_matches_in_subtree Delegate handler should have fired three times, once for each div in #div-1
Expected: 3 (number)
Actual: 0 (number)
test_removing_parent_in_subscriber Values should be the same.
Expected: 2 (number)
Actual: 0 (number)
test_successful_purge The second delegated listener should be called.
Expected: true (boolean)
Actual: false (boolean)
test_successful_detach The second delegated listener should be called.
Expected: true (boolean)
Actual: false (boolean)
in Bugs
stopPropagation should stop multiple matches Value should be true.
Expected: true (boolean)
Actual: false (boolean)

✖ Y.ValueChange on Internet Explorer (9.0) / Windows
1 passed, 7 failed
in Everything
valueChange event should start polling on mousedown and fire an event when the value changes Value should be true.
Expected: true (boolean)
Actual: undefined (undefined)
valueChange should support textareas as well Value should be true.
Expected: true (boolean)
Actual: undefined (undefined)
valueChange should start polling on keydown Value should be true.
Expected: true (boolean)
Actual: undefined (undefined)
valueChange should stop polling on blur Value should be true.
Expected: true (boolean)
Actual: undefined (undefined)
valueChange should start polling on focus Value should be true.
Expected: true (boolean)
Actual: undefined (undefined)
valueChange should start polling on keyup for IME keystrokes Value should be true.
Expected: true (boolean)
Actual: false (boolean)
valueChange should stop polling after timeout Value should be true.
Expected: true (boolean)
Actual: undefined (undefined)

Type: defect Observed in Version: development master
Component: Event Severity: S2 (high)
Assigned To: Adam Moore Target Release: 3.3.0
Location: Library Code Priority: P3 (normal)
Tags: yeti Relates To:
Browsers: IE 9.x
URL:
Test Information:

Change History

Adam Moore

YUI Contributor

Posted: 10/13/10
  • status changed from new to accepted

Reid Burke

YUI Developer

Posted: 10/18/10
  • keywords changed from DOCME yeti to yeti

DOM is all good across browsers.

Delegate is greatly improved but there's a new cross-browser issue which includes IE 9:

✖ Delegate on Safari (5.0.2) / Mac OS
17 passed, 2 failed
in Event Delegate Tests
test_multiple_matches_in_subtree: First delegate callback should be from the highest div in the subtree
Expected: div-1-2 (string)
Actual: div-1-2-1-1 (string)
test_removing_parent_in_subscriber: Values should be the same.
Expected: 2 (number)
Actual: 1 (number)

✖ Delegate on Firefox (4.0b6) / Windows
17 passed, 2 failed
in Event Delegate Tests
test_multiple_matches_in_subtree: First delegate callback should be from the highest div in the subtree
Expected: div-1-2 (string)
Actual: div-1-2-1-1 (string)
test_removing_parent_in_subscriber: Values should be the same.
Expected: 2 (number)
Actual: 1 (number)

✖ http://172.21.155.36:8000/project/4844612/Users/reid/Development/yui/yui3/src/event/tests/delegate.html on Internet Explorer (9.0) / Windows
0 passed, 1 failed
in window.onerror handler (yeti virtual test)
window.onerror should not fire: 'null' is null or not an object

✖ Delegate on Internet Explorer (9.0) / Windows
17 passed, 2 failed
in Event Delegate Tests
test_multiple_matches_in_subtree: First delegate callback should be from the highest div in the subtree
Expected: div-1-2 (string)
Actual: div-1-2-1-1 (string)
test_removing_parent_in_subscriber: Values should be the same.
Expected: 2 (number)
Actual: 1 (number)

Reid Burke

YUI Developer

Posted: 10/18/10
  • status changed from accepted to checkedin

Delegate is now passing. I'll open new tickets for the remaining failures.

Thanks!

From yuisource.corp.yahoo.com:yui3
* branch master -> FETCH_HEAD
Updating e684396..c8f2916
Fast-forward
src/event/tests/delegate.html | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)

[reid@wlanvpn-snve-247-175 512 ~/Development/yui/yui3]
$ yeti src/event/tests/delegate.html
Waiting for results. When you're done, hit Ctrl-C to exit.
✔ Delegate on Safari (5.0.2) / Mac OS
19 passed, 0 failed

✔ Delegate on Internet Explorer (9.0) / Windows
19 passed, 0 failed

✔ Delegate on Firefox (4.0b6) / Windows
19 passed, 0 failed

George

YUI Developer

Posted: 01/14/11
  • resolution changed to fixed
  • status changed from checkedin to closed