1
0
mirror of synced 2024-11-22 13:06:08 +03:00
select2/tests
Kevin Brown b5a4698250 Add regression tests for the positioning issues
This adds a regression test that verifies the problem with positioning
the dropdown when the parent is a statically positioned element that
still has an offset. This could typically be seen if the body element
has an offset, which unfortunately it almost always does because of the
default user stylesheet in browsers. This was not caught during
pre-release testing because all of the test pages reset the margins and
padding on the body element.

This regression test verifies that the offsets that should be set for
the dropdown are calculated correctly. These were surprisingly difficult
to do because of how the offset is calculated using different
positioning techniques.

These tests are for https://github.com/select2/select2/issues/3970
2016-01-01 16:47:49 -05:00
..
a11y Add tests for accessible search results 2015-11-23 18:35:36 -05:00
data Add tests for 4958961 2015-08-21 19:17:00 -04:00
dropdown Add regression tests for the positioning issues 2016-01-01 16:47:49 -05:00
integration Fix select2('data') again 2015-03-14 15:23:29 -04:00
options Allow for a partial dictionary in language 2015-04-02 10:52:31 -04:00
selection Tests for the inline search box 2015-11-23 18:25:09 -05:00
utils Combine tests into common files 2015-02-13 23:29:56 -05:00
vendor Tests use jQuery 1.7.2 2015-03-11 19:20:41 -04:00
helpers.js Hook up with SauceLabs 2015-02-13 21:59:09 -05:00
integration.html Fix select2('data') again 2015-03-14 15:23:29 -04:00
unit.html Added test for attachBody 2015-12-31 13:04:38 -05:00