Bug 1298008 Part 6: Update a devtools test that checks the computed values of auto margins in the box model. r=gl
authorBrad Werth <bwerth@mozilla.com>
Mon, 02 Apr 2018 09:01:34 -0700
changeset 776462 55602e9462ae04c0023339cda4b10ffa40d481c3
parent 776461 3b3b14692cc451d37e33ef468871dbc26604f349
child 776463 173ac8b5a196d1159acb4ed4f1ddf52f28de50ba
push id104888
push userbmo:emilio@crisal.io
push dateTue, 03 Apr 2018 07:00:14 +0000
reviewersgl
bugs1298008
milestone61.0a1
Bug 1298008 Part 6: Update a devtools test that checks the computed values of auto margins in the box model. r=gl MozReview-Commit-ID: KBR8GkynhzV
devtools/client/inspector/boxmodel/test/browser_boxmodel_pseudo-element.js
--- a/devtools/client/inspector/boxmodel/test/browser_boxmodel_pseudo-element.js
+++ b/devtools/client/inspector/boxmodel/test/browser_boxmodel_pseudo-element.js
@@ -48,25 +48,25 @@ const res1 = [
     value: "32"
   },
   {
     selector: ".boxmodel-margin.boxmodel-top > span",
     value: 0
   },
   {
     selector: ".boxmodel-margin.boxmodel-left > span",
-    value: 0
+    value: 4 // (100 - (10 * 2) - (20 * 2) - 32) / 2
   },
   {
     selector: ".boxmodel-margin.boxmodel-bottom > span",
     value: 6
   },
   {
     selector: ".boxmodel-margin.boxmodel-right > span",
-    value: 0
+    value: 4 // (100 - (10 * 2) - (20 * 2) - 32) / 2
   },
   {
     selector: ".boxmodel-padding.boxmodel-top > span",
     value: 0
   },
   {
     selector: ".boxmodel-padding.boxmodel-left > span",
     value: 0