Bug 1533392 - followup: Remove ok() calls since we have testharness.js tests using this file.
authorEmilio Cobos Álvarez <emilio@crisal.io>
Fri, 08 Mar 2019 00:46:19 +0100
changeset 520928 b54eca99b0b388236b1cdecbd1fe606604874a82
parent 520927 707ec85ae54c8922796ad4e48e5fffa4b050bd31
child 520929 bf9beb4c67a568d885b828037bcc704ecdb89fe1
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1533392
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1533392 - followup: Remove ok() calls since we have testharness.js tests using this file. CLOSED TREE
layout/style/test/property_database.js
--- a/layout/style/test/property_database.js
+++ b/layout/style/test/property_database.js
@@ -78,20 +78,18 @@ const CSS_TYPE_LEGACY_SHORTHAND = 3;
 // Helper functions used to construct gCSSProperties.
 
 function initial_font_family_is_sans_serif()
 {
   // The initial value of 'font-family' might be 'serif' or
   // 'sans-serif'.
   const meta = document.createElement("meta");
   meta.setAttribute("style", "font: initial;");
-  ok(document.documentElement, "We should have a place to put ourselves into");
   document.documentElement.appendChild(meta);
   const family = getComputedStyle(meta).fontFamily;
-  ok(family == "serif" || family == "sans-serif", "Should be able to get the family");
   meta.remove();
   return family == "sans-serif";
 }
 
 var gInitialFontFamilyIsSansSerif = initial_font_family_is_sans_serif();
 
 // shared by background-image and border-image-source
 var validGradientAndElementValues = [