Bug 1429271 - Use 'is' to compare so that the obtained value is logged when the assert fails. r=Honza
authorOriol Brufau <oriol-bugzilla@hotmail.com>
Wed, 10 Jan 2018 16:33:14 +0100
changeset 453366 b0febafcec421eb8c8fc2e067303882f5c72750c
parent 453365 e7738f07edae521d7459d2ac759416005a4899cd
child 453367 abb5be3dbdc71cb52a3edfc2a9a6f3a522b0f486
push id1648
push usermtabara@mozilla.com
push dateThu, 01 Mar 2018 12:45:47 +0000
treeherdermozilla-release@cbb9688c2eeb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersHonza
bugs1429271
milestone59.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 1429271 - Use 'is' to compare so that the obtained value is logged when the assert fails. r=Honza MozReview-Commit-ID: 6A87wJfrC8U
devtools/client/jsonview/test/browser_jsonview_slash.js
--- a/devtools/client/jsonview/test/browser_jsonview_slash.js
+++ b/devtools/client/jsonview/test/browser_jsonview_slash.js
@@ -1,16 +1,16 @@
 /* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
 /* vim: set ts=2 et sw=2 tw=80: */
 /* Any copyright is dedicated to the Public Domain.
  * http://creativecommons.org/publicdomain/zero/1.0/ */
 
 "use strict";
 
 add_task(function* () {
-  info("Test JSON with NUL started.");
+  info("Test JSON with slash started.");
 
   const TEST_JSON_URL = "data:application/json,{\"a/b\":[1,2],\"a\":{\"b\":[3,4]}}";
   yield addJsonViewTab(TEST_JSON_URL);
 
   let countBefore = yield getElementCount(".jsonPanelBox .treeTable .treeRow");
-  ok(countBefore == 7, "There must be seven rows");
+  is(countBefore, 7, "There must be seven rows");
 });