mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10:08 +02:00
Use strict equalities in test/unit/{function_spec, stream_spec, testreporter}.js
This commit is contained in:
parent
e525902241
commit
b0349cd184
3 changed files with 4 additions and 4 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue