Closed
Bug 772036
Opened 12 years ago
Closed 12 years ago
Unit test failure: *ListView click handler
Categories
(Pancake Graveyard :: Front-end, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
M3
People
(Reporter: sfoster, Unassigned)
Details
The following assertions fail: should trigger a visit event when clicked Expected spy unknown to have been called. should pass view, StackModel and DOM event to the handler TypeError: 'undefined' is not an object (evaluating 'args[0]') in http://colin.local:6543/test/spec/StackListViewSpec.js?v=1.1 (line 77) ..check these specs reflect current expectations and fix/remove/amend.
Reporter | ||
Comment 1•12 years ago
|
||
Looks like similar issues with StackHeadingListView click handler, StackHeadingListView title click handler, PostListView touchend/click handler
Summary: Unit test failure: StackListView click handler → Unit test failure: *ListView click handler
Reporter | ||
Updated•12 years ago
|
Target Milestone: --- → M3
Reporter | ||
Comment 2•12 years ago
|
||
I have the first of these fixed in https://bitbucket.org/mozillapancake/pancake/changeset/b29a9eb0549d These are old test failures due to some quirk in how $.trigger works in zepto maybe? I've reworked them to avoid the faux DOM events and test the rendering is what we expect, and that we get the expected result when our click handler is called with an event-like thing; we know event handling/delegation works so that doesn't need to be under test.
Reporter | ||
Comment 3•12 years ago
|
||
PostViewView specs and StackHeadingListView specs reworked and now passing in Safari. See: https://bitbucket.org/mozillapancake/pancake/changeset/99c71be4b96f https://bitbucket.org/mozillapancake/pancake/changeset/bfadb054d7d0 https://bitbucket.org/mozillapancake/pancake/changeset/b29a9eb0549d
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•