Bug 1472917 - Update test_transitions_per_property.html so it continues to work r=hiro
authorBrian Birtles <birtles@gmail.com>
Fri, 19 Oct 2018 04:40:56 +0000
changeset 490429 e7aff1bbcd20a54914a046ead912bcf21cf86e76
parent 490428 cd10f03f66401805ad95d71319acd3ec8fe95dca
child 490430 660b4ee6c9133fb2fb9fee9d70cf0e8d9b04051a
push id247
push userfmarier@mozilla.com
push dateSat, 27 Oct 2018 01:06:44 +0000
reviewershiro
bugs1472917
milestone64.0a1
Bug 1472917 - Update test_transitions_per_property.html so it continues to work r=hiro with the new interpolation rules; r?hiro The updated tests are intended to cover percent translation when using matrix decomposition but after introducing the new interpolation rules the initial rotate() functions will match so the result will differ. This patch updates the test values so that the result will not change even after introducing the new interpolation rules. Depends on D9183 Differential Revision: https://phabricator.services.mozilla.com/D9184
layout/style/test/test_transitions_per_property.html
--- a/layout/style/test/test_transitions_per_property.html
+++ b/layout/style/test/test_transitions_per_property.html
@@ -453,21 +453,21 @@ var transformTests = [
     round_error_ok: true },
   { start: 'none', end: 'rotate(90deg) translate(20%, 20%) rotate(-90deg)',
     expected_uncomputed: 'rotate(22.5deg) translate(5%, 5%) rotate(-22.5deg)',
     round_error_ok: true },
   { start: 'none', end: 'rotate(-90deg) translate(20%, 20%) rotate(90deg)',
     expected_uncomputed: 'rotate(-22.5deg) translate(5%, 5%) rotate(22.5deg)',
     round_error_ok: true },
   // test percent translation using matrix decomposition
-  { start: 'rotate(45deg) rotate(-45deg)',
+  { start: 'matrix(1, 0, 0, 1, 0, 0)',
     end: 'rotate(90deg) translate(20%, 20%) rotate(-90deg)',
     expected: 'matrix(1, 0, 0, 1, -2.5, 15)',
     round_error_ok: true },
-  { start: 'rotate(45deg) rotate(-45deg)',
+  { start: 'matrix(1, 0, 0, 1, 0, 0)',
     end: 'rotate(-90deg) translate(20%, 20%) rotate(90deg)',
     expected: 'matrix(1, 0, 0, 1, 2.5, -15)',
     round_error_ok: true },
   // test calc() in translate
   // Note that font-size: is 20px, and that percentages are relative
   // to 300px (width) and 50px (height) per the prerequisites in
   // property_database.js
   { start: 'translateX(20%)', /* 60px */