gecko/layout/style/test
Brian Birtles 292493119c Bug 964646 part 10 - Fix floating point precision issues when comparing matrices; r=dbaron
This patch addresses and issue where the OMTA style and computed style were not
comparing equal in one particular case.

In this case AddTransformTranslate in nsStyleAnimation would give us
a translate-y value of 94.331673 in both cases (i.e. when calculating the
animated value on the compositor thread or when fetching computed style).

For the OMTA case, however, after we apply additional layer transformations and
then reverse them (so we can query the CSS value) we'd end up with 94.331642,
a difference of 0.000031. The reversing procedure is only used for testing so
the actual error introduced here by the additional layer transformations is
probably less.

Unfortunately, when we pass 94.331642 this along to MatrixToCSSValue we get back
matrix(1, 0, 0, 1, 94.3316) since it only outputs 6 digits of precision.

On the other hand, on the computed style end we'd pass 94.331673 to
MatrixToCSSValue which gives us matrix(1, 0, 0, 1, 94.3317), so the error swells
from 0.000031 to 0.0001.

Then when we subtract 94.3316 from 94.3317 in Javascript we get
0.00010000000000331966 due to floating-point precision issues which compares
greater than the default tolerance of 0.0001.

This patch simply adjusts the default tolerance to 0.00011 to accommodate
these floating-point differences.
2014-05-19 14:42:48 +09:00
..
chrome Bug 985838 - Change custom property name prefix from "var-" to "--" and allow identifiers to begin with "--". r=dbaron 2014-04-02 14:32:16 +11:00
css-visited Bug 975455 - Move more Mochitests to manifests. r=jmaher 2014-02-20 10:14:52 -05:00
support Bug 985838 - Change custom property name prefix from "var-" to "--" and allow identifiers to begin with "--". r=dbaron 2014-04-02 14:32:16 +11:00
animation_utils.js Bug 964646 part 1 - Add common OMTA test runner to animation_utils.js; r=dbaron 2014-04-03 16:55:44 +09:00
browser_bug453896.js
browser.ini Bug 987404 - Disable failing mochitest-browser tests in e10s. r=ted. 2014-04-02 10:53:55 +11:00
bug453896_iframe.html
bug517224.sjs
bug732209-css.sjs
ccd-quirks.html
ccd-standards.html
ccd.sjs
css_properties_like_longhand.js
descriptor_database.js
empty.html
file_bug645998-1.css
file_bug645998-2.css
file_bug829816.css Bug 829816 - Treat \0 and U+0000 in CSS style sheets as U+FFFD. r=dbaron 2013-06-26 15:17:14 -07:00
file_position_sticky.html Bug 886646 - Part 3: Compute sticky positioning offsets for getComputedStyle(). r=heycam 2013-08-15 17:31:32 -07:00
flexbox_layout_testcases.js Bug 1005660: Add an "early freeze" step, to freeze flex items that clearly can't grow (or shrink, if we're shrinking). r=mats 2014-05-17 18:49:06 -07:00
ListCSSProperties.cpp Bug 947588. Part 1: Add "-moz-control-character-visibility" property to the style system. r=heycam 2014-02-05 23:08:48 +13:00
Makefile.in Backed out changeset 88780b5a201e (bug 980015) for test_property_database.html failures. 2014-03-10 15:31:23 -04:00
media_queries_dynamic_xbl_binding.xml
media_queries_dynamic_xbl_iframe.html
media_queries_dynamic_xbl_style.css
media_queries_iframe.html
mochitest.ini Bug 964646 part 2 - Add OMTA version of test_animations.html fill mode tests; r=dbaron 2014-04-03 16:55:44 +09:00
moz.build Bug 975455 - Move more Mochitests to manifests. r=jmaher 2014-02-20 10:14:52 -05:00
ParseCSS.cpp
post-redirect-1.css
post-redirect-2.css
post-redirect-3.css
property_database.js Bug 1005567 - Remove the obsolete 'grid-auto-position' property. r=simon.sapin 2014-05-06 09:45:13 +00:00
redirect.sjs
redundant_font_download.sjs bug 879963 - unit tests for redundant downloading of a repeated @font-face resource, and for rendering regressions when multiple rules refer to the same font. r=dbaron,jdaggett 2013-08-12 10:08:00 +01:00
style_attribute_tests.js Bug 915053: Remove quirk allowing {} around style attribute. r=heycam 2013-09-17 04:44:15 -07:00
test_acid3_test46.html
test_all_shorthand.html Bug 842329 - Part 4: Test. r=bzbarsky 2013-10-04 04:49:20 +10:00
test_animations_omta_start.html Bug 964646 part 1 - Add common OMTA test runner to animation_utils.js; r=dbaron 2014-04-03 16:55:44 +09:00
test_animations_omta.html Bug 964646 part 10 - Fix floating point precision issues when comparing matrices; r=dbaron 2014-05-19 14:42:48 +09:00
test_animations.html Bug 964646 part 2 - Add OMTA version of test_animations.html fill mode tests; r=dbaron 2014-04-03 16:55:44 +09:00
test_any_dynamic.html
test_at_rule_parse_serialize.html
test_background_blend_mode.html Bug 950416 - Set the background-blend-mode pref in test_background_blend_mode.html so it works whether or not it's already enabled, r=roc 2014-01-10 03:29:39 +02:00
test_bug73586.html
test_bug74880.html Bug 921731 - Part 10: Modify existing style tests to use "unset". r=bzbarsky 2013-10-04 04:49:19 +10:00
test_bug98997.html
test_bug160403.html Bug 807184 patch 1: Fix uses in tests of prefixed -moz-initial. r=dholbert 2013-06-20 18:31:27 -07:00
test_bug200089.html
test_bug221428.html
test_bug229915.html
test_bug302186.html
test_bug319381.html
test_bug357614.html
test_bug363146.html Bug 520992: Adjust computed width and height before returning to account for box-sizing. [r=bz] 2013-04-04 09:00:07 -05:00
test_bug365932.html
test_bug372770.html
test_bug373293.html
test_bug377947.html Bug 549861 - reland font-variant subproperties with DOM-peer review. r=khuey 2013-05-20 11:59:20 +09:00
test_bug379440.html
test_bug379741.html
test_bug382027.html
test_bug383075.html
test_bug387615.html
test_bug389464.html
test_bug391034.html
test_bug391221.html
test_bug397427.html
test_bug399349.html
test_bug401046.html
test_bug405818.html
test_bug412901.html
test_bug413958.html
test_bug437915.html
test_bug450191.html
test_bug453896_deck.html
test_bug470769.html Bug 470769 - Store computed styles of integer-valued properties as integers in nsROCSSPrimitiveValue, so they round-trip correctly. r=bzbarsky 2014-03-29 09:29:30 -07:00
test_bug499655.html
test_bug499655.xhtml
test_bug511909.html
test_bug517224.html
test_bug524175.html
test_bug525952.html
test_bug534804.html
test_bug573255.html
test_bug580685.html
test_bug635286.html
test_bug645998.html
test_bug652486.html Bug 812995 Support 'blink' value at -moz-text-decoration-line and drop -moz-text-blink r=dbaron 2013-08-06 23:02:34 +09:00
test_bug657143.html
test_bug664955.html
test_bug667520.html
test_bug716226.html
test_bug732153.html
test_bug732209.html
test_bug765590.html
test_bug795520.html
test_bug798567.html
test_bug798843_pref.html Bug 798843 - Test to check that context-* attribute values are not valid when gfx.font-rendering.opentype_svg.enabled pref is false r=dbaron 2013-05-16 14:35:15 +12:00
test_bug829816.html Bug 829816 - Treat \0 and U+0000 in CSS style sheets as U+FFFD. r=dbaron 2013-06-26 15:17:14 -07:00
test_bug874919.html Bug 874919 - Added a check to DoGetWidth/Height so the width/height properties of getComputedStyle now return correct values on inline SVG elements. r=bz 2013-12-11 14:13:48 -05:00
test_bug887741_at-rules_in_declaration_lists.html Bug 887741 - Allow CSS at-rules in declaration lists. r=dbaron 2013-07-25 09:43:29 -04:00
test_bug892929.html Bug 892929 - test that CSSFontFeatureValueRule hidden when font features disabled. r=bz 2013-07-31 14:19:49 +09:00
test_cascade.html
test_ch_ex_no_infloops.html
test_compute_data_with_start_struct.html Add comment describing what test_compute_data_with_start_struct.html does. No bug. No review. 2014-01-14 16:11:14 -08:00
test_computed_style_no_pseudo.html
test_computed_style_prefs.html Bug 997006 - rename text-combine-horizontal to text-combine-upright. r=dholbert 2014-04-17 09:15:18 +09:00
test_computed_style.html
test_condition_text_assignment.html
test_condition_text.html
test_css_cross_domain.html
test_css_eof_handling.html
test_css_escape_api.html Bug 1008719. CSS syntax got changed to allow identifiers starting with "--", so update our escaping code accordingly. r=dholbert 2014-05-15 10:26:53 -07:00
test_css_function_mismatched_parenthesis.html Bug 897094 - Mismatched parenthesis in some CSS functions do not prevent parsing of subsequent CSS properties. r=heycam 2013-07-30 15:38:01 -04:00
test_css_supports_variables.html Bug 985838 - Change custom property name prefix from "var-" to "--" and allow identifiers to begin with "--". r=dbaron 2014-04-02 14:32:16 +11:00
test_css_supports.html
test_default_bidi_css.html
test_default_computed_style.html
test_descriptor_storage.html
test_descriptor_syntax_errors.html
test_dont_use_document_colors.html Bug 914089 - b2g.json cleanup and reorder, part 3. r=jmaher 2013-09-11 13:52:42 +02:00
test_extra_inherit_initial.html Bug 958802 part 2: Disable CSS error reporting in mochitest test_extra_inherit_initial.html, to avoid wasting time reporting all of its (expected) parse errors. r=bz 2014-01-14 21:43:28 -08:00
test_flexbox_align_self_auto.html Bug 936100 part 4: Rename file_flexbox* mochitests (which were previously loaded in iframes) to test_flexbox*. r=mats 2013-11-09 07:53:03 -08:00
test_flexbox_child_display_values.xhtml Bug 936100 part 4: Rename file_flexbox* mochitests (which were previously loaded in iframes) to test_flexbox*. r=mats 2013-11-09 07:53:03 -08:00
test_flexbox_flex_grow_and_shrink.html Bug 996945: Remove prohibition on flex-grow & flex-shrink properties transitioning between 0 and other values. r=mats 2014-05-04 09:12:32 -07:00
test_flexbox_flex_shorthand.html Bug 981919: Add some documentation/clarification in test_flexbox_flex_shorthand.html. r=SimonSapin 2014-03-11 10:06:54 -07:00
test_flexbox_layout.html Bug 992397: Relax extreme testcases in test_flexbox_layout.html to allow an epsilon difference. r=mats 2014-04-11 14:22:11 -07:00
test_flexbox_order_table.html Bug 936100 part 4: Rename file_flexbox* mochitests (which were previously loaded in iframes) to test_flexbox*. r=mats 2013-11-09 07:53:03 -08:00
test_flexbox_order.html Bug 936100 part 4: Rename file_flexbox* mochitests (which were previously loaded in iframes) to test_flexbox*. r=mats 2013-11-09 07:53:03 -08:00
test_font_face_parser.html
test_font_family_parsing.html Bug 921731 - Part 10: Modify existing style tests to use "unset". r=bzbarsky 2013-10-04 04:49:19 +10:00
test_font_feature_values_parsing.html Bug 886691 - make tests and serialization code sensitive to font features pref. r=dbaron 2013-07-25 15:01:41 +09:00
test_garbage_at_end_of_declarations.html Bug 976787 part 5: Add grid-{column,row}-{start,end} and grid-auto-position to the style system. r=dholbert 2014-03-10 15:54:17 -07:00
test_grid_container_shorthands.html Bug 994592 - Make 'row' the initial value for 'grid-auto-flow' and remove 'none' as a valid value. And add the 'stack' variants. r=simon.sapin 2014-05-06 09:45:13 +00:00
test_grid_item_shorthands.html Bug 981752 part 1: Add the grid-column, grid-row and grid-area shorthands. r=dholbert 2014-03-21 23:06:12 +08:00
test_grid_shorthand_serialization.html Bug 994592 - Make 'row' the initial value for 'grid-auto-flow' and remove 'none' as a valid value. And add the 'stack' variants. r=simon.sapin 2014-05-06 09:45:13 +00:00
test_group_insertRule.html
test_html_attribute_computed_values.html
test_ident_escaping.html
test_inherit_computation.html Bug 921731 - Part 10: Modify existing style tests to use "unset". r=bzbarsky 2013-10-04 04:49:19 +10:00
test_inherit_storage.html Bug 921731 - Part 10: Modify existing style tests to use "unset". r=bzbarsky 2013-10-04 04:49:19 +10:00
test_initial_computation.html Bug 921731 - Part 10: Modify existing style tests to use "unset". r=bzbarsky 2013-10-04 04:49:19 +10:00
test_initial_storage.html (no bug) Add labels to the various is() checks in test_initial_storage.html, to aid in diagnosing test-failures. r=dholbert 2014-03-05 16:53:08 -08:00
test_keyframes_rules.html
test_load_events_on_stylesheets.html
test_media_queries_dynamic_xbl.html
test_media_queries_dynamic.html
test_media_queries.html Bug 906072 - Remove Maemo port. r=romaxa, r=ted, r=johns 2013-08-25 16:56:53 -07:00
test_media_query_list.html Bug 950523 - Part 2: Move MediaQueryList to WebIDL bindings; r=bzbarsky 2013-12-16 09:03:34 -05:00
test_moz_device_pixel_ratio.html
test_namespace_rule.html
test_of_type_selectors.xhtml
test_page_parser.html
test_parse_eof.html Bug 880150 - Treat \<EOF> as U+FFFD outside a string, and drop it inside a string. r=dbaron 2013-06-10 17:04:27 +10:00
test_parse_ident.html
test_parse_rule.html Bug 985838 - Change custom property name prefix from "var-" to "--" and allow identifiers to begin with "--". r=dbaron 2014-04-02 14:32:16 +11:00
test_parse_url.html
test_parser_diagnostics_unprintables.html Bug 1008719. CSS syntax got changed to allow identifiers starting with "--", so update our escaping code accordingly. r=dholbert 2014-05-15 10:26:53 -07:00
test_pixel_lengths.html Bug 916158 - Remove spurious setIntPref. r=jmaher 2013-09-13 22:13:30 +02:00
test_pointer-events.html
test_position_sticky.html Bug 886646 - Part 3: Compute sticky positioning offsets for getComputedStyle(). r=heycam 2013-08-15 17:31:32 -07:00
test_priority_preservation.html Bug 887502 - Part 1: Coalesce corners rather than repeating when serializing specified values of 'border-radius'. r=dbaron 2013-07-02 08:10:43 -04:00
test_property_database.html Bug 842329 - Part 1: Add "all" shorthand property. r=bzbarsky 2013-10-04 04:49:19 +10:00
test_property_syntax_errors.html Bug 989560 patch 2 - Don't accept an empty value for font-variant-alternates. r=heycam 2014-04-01 11:53:32 -07:00
test_pseudoelement_parsing.html Bug 945048 - Correctly check for the CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE flag when parsing pseudo-classes after pseudo-elements. r=bz 2013-12-02 13:06:20 +11:00
test_pseudoelement_state.html Bug 944246 - Make getComputedStyle pass in anonymous content when resolving pseudo-element style. r=bz 2013-12-03 10:57:50 +11:00
test_redundant_font_download.html bug 879963 - unit tests for redundant downloading of a repeated @font-face resource, and for rendering regressions when multiple rules refer to the same font. r=dbaron,jdaggett 2013-08-12 10:08:00 +01:00
test_rem_unit.html
test_root_node_display.html Bug 969460 part 3: regression tests for "display:flex" on root node. r=bz 2014-02-15 10:43:11 -08:00
test_rule_insertion.html Bug 914089 - b2g.json cleanup and reorder, part 3. r=jmaher 2013-09-11 13:52:42 +02:00
test_rule_serialization.html
test_rules_out_of_sheets.html
test_selectors_on_anonymous_content.html Bug 986730 - Fix up a bunch of tests that assume that they can touch AC in content. r=mrbkap 2014-04-06 12:32:38 -07:00
test_selectors.html Bug 880150 - Treat \<EOF> as U+FFFD outside a string, and drop it inside a string. r=dbaron 2013-06-10 17:04:27 +10:00
test_shorthand_property_getters.html Bug 613659 - Remove remaining vestiges of -moz-background-inline-policy. r=cam 2014-05-05 17:55:54 +00:00
test_specified_value_serialization.html Bug 886691 - make tests and serialization code sensitive to font features pref. r=dbaron 2013-07-25 15:01:41 +09:00
test_style_attribute_quirks.html Bug 915053: Remove quirk allowing {} around style attribute. r=heycam 2013-09-17 04:44:15 -07:00
test_style_attribute_standards.html Bug 915053: Remove quirk allowing {} around style attribute. r=heycam 2013-09-17 04:44:15 -07:00
test_style_struct_copy_constructors.html
test_supports_rules.html
test_system_font_serialization.html Bug 549861 - reland font-variant subproperties with DOM-peer review. r=khuey 2013-05-20 11:59:20 +09:00
test_transitions_and_zoom.html
test_transitions_bug537151.html
test_transitions_cancel_near_end.html
test_transitions_computed_value_combinations.html
test_transitions_computed_values.html
test_transitions_dynamic_changes.html
test_transitions_events.html Bug 959832 patch 2: Transition events and animation events are not cancelable. r=smaug 2014-01-14 16:11:15 -08:00
test_transitions_per_property.html Bug 936100 part 2: Adjust non-flexbox-specific mochitests to no longer bother with flexbox pref. r=mats 2013-11-09 07:53:02 -08:00
test_transitions_step_functions.html
test_transitions.html Bug 541855: Add in the error tolerance before calling the timing function, so that we allow more error for steeper functions, and less error for most. r=dholbert 2014-02-14 21:29:12 -08:00
test_unclosed_parentheses.html
test_units_angle.html
test_units_frequency.html
test_units_length.html
test_units_time.html
test_value_cloning.html Bug 921731 - Part 10: Modify existing style tests to use "unset". r=bzbarsky 2013-10-04 04:49:19 +10:00
test_value_computation.html Bug 709014 patch 1: Honor margin-left and margin-right on elements in inline layout that have 0 width and/or height (commonly, inline-blocks). r=roc 2014-02-17 20:07:45 -08:00
test_value_storage.html Bug 985838 - Change custom property name prefix from "var-" to "--" and allow identifiers to begin with "--". r=dbaron 2014-04-02 14:32:16 +11:00
test_variable_serialization_computed.html Bug 985838 - Change custom property name prefix from "var-" to "--" and allow identifiers to begin with "--". r=dbaron 2014-04-02 14:32:16 +11:00
test_variable_serialization_specified.html Bug 985838 - Change custom property name prefix from "var-" to "--" and allow identifiers to begin with "--". r=dbaron 2014-04-02 14:32:16 +11:00
test_variables.html Bug 985838 - Change custom property name prefix from "var-" to "--" and allow identifiers to begin with "--". r=dbaron 2014-04-02 14:32:16 +11:00
test_viewport_units.html
test_visited_image_loading_empty.html
test_visited_image_loading.html
test_visited_lying.html
test_visited_pref.html
test_visited_reftests.html
TestCSSPropertyLookup.cpp Bug 977757 - 1/3 - make nsCSSProps::EnabledState a bitfield - r=dbaron,bz 2014-03-07 12:14:23 -05:00
unstyled-frame.css
unstyled-frame.xml
unstyled.css
unstyled.xml
viewport_units_iframe.html
visited_image_loading_frame_empty.html
visited_image_loading_frame.html
visited_image_loading.sjs
visited-lying-inner.html
visited-pref-iframe.html
xbl_bindings.xml