Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
added unit test to check for error when positioning within document
  • Loading branch information
meyertee committed Sep 4, 2013
commit 9564b4c88521fa451e149e173457a65baacfc87c
9 changes: 8 additions & 1 deletion tests/unit/position/position_core.js
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,14 @@ test( "collision: flip, with margin", function() {
});

test( "within", function() {
expect( 6 );
expect( 7 );

collisionTest({
within : document
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No space before the colon, same thing for the next two.

}, {
top : 10,
left : 10
}, "within document (bug #9533)");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While we have a few ticket references here and there, we should avoid them. The test speaks for itself. Can you remove the reference?


collisionTest({
within: "#within",
Expand Down