[Pkg-javascript-commits] [pdf.js] 59/246: Use strict equalities in test/unit/{function_spec, stream_spec, testreporter}.js

David Prévot taffit at moszumanska.debian.org
Sun Sep 7 15:36:25 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository pdf.js.

commit b0349cd184628df0f99a6471defcdfe29f4657ec
Author: Tim van der Meij <timvandermeij at gmail.com>
Date:   Thu Jul 31 23:08:15 2014 +0200

    Use strict equalities in test/unit/{function_spec, stream_spec, testreporter}.js
---
 test/unit/function_spec.js | 4 ++--
 test/unit/stream_spec.js   | 2 +-
 test/unit/testreporter.js  | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/test/unit/function_spec.js b/test/unit/function_spec.js
index fb69123..d3e6f81 100644
--- a/test/unit/function_spec.js
+++ b/test/unit/function_spec.js
@@ -10,13 +10,13 @@ describe('function', function() {
     this.addMatchers({
       toMatchArray: function(expected) {
         var actual = this.actual;
-        if (actual.length != expected.length) {
+        if (actual.length !== expected.length) {
           return false;
         }
         for (var i = 0; i < expected.length; i++) {
           var a = actual[i], b = expected[i];
           if (isArray(b)) {
-            if (a.length != b.length) {
+            if (a.length !== b.length) {
               return false;
             }
             for (var j = 0; j < a.length; j++) {
diff --git a/test/unit/stream_spec.js b/test/unit/stream_spec.js
index df0278d..e21e9b4 100644
--- a/test/unit/stream_spec.js
+++ b/test/unit/stream_spec.js
@@ -9,7 +9,7 @@ describe('stream', function() {
     this.addMatchers({
       toMatchTypedArray: function(expected) {
         var actual = this.actual;
-        if (actual.length != expected.length) {
+        if (actual.length !== expected.length) {
           return false;
         }
         for (var i = 0, ii = expected.length; i < ii; i++) {
diff --git a/test/unit/testreporter.js b/test/unit/testreporter.js
index 98a49f5..d338d81 100644
--- a/test/unit/testreporter.js
+++ b/test/unit/testreporter.js
@@ -11,7 +11,7 @@ var TestReporter = function(browser, appPath) {
     r.open('POST', action, true);
     r.setRequestHeader('Content-Type', 'application/json');
     r.onreadystatechange = function sendTaskResultOnreadystatechange(e) {
-      if (r.readyState == 4) {
+      if (r.readyState === 4) {
         // Retry until successful
         if (r.status !== 200) {
           send(action, json, cb);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list