[Pkg-javascript-commits] [pdf.js] 58/246: Use strict equalities in test/driver.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 e525902241fbbe1f436235b3973943adcb65eeba
Author: Tim van der Meij <timvandermeij at gmail.com>
Date: Thu Jul 31 23:05:50 2014 +0200
Use strict equalities in test/driver.js
---
test/driver.js | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/test/driver.js b/test/driver.js
index e2ad262..84b0c4f 100644
--- a/test/driver.js
+++ b/test/driver.js
@@ -70,7 +70,7 @@ window.load = function load() {
var r = new XMLHttpRequest();
r.open('GET', manifestFile, false);
r.onreadystatechange = function loadOnreadystatechange(e) {
- if (r.readyState == 4) {
+ if (r.readyState === 4) {
log('done\n');
manifest = JSON.parse(r.responseText);
currentTaskIdx = 0;
@@ -132,7 +132,7 @@ function nextTask() {
}
function continueNextTask() {
- if (currentTaskIdx == manifest.length) {
+ if (currentTaskIdx === manifest.length) {
done();
return;
}
@@ -291,7 +291,7 @@ function nextPage(task, loadError) {
var initPromise = new Promise(function (resolve) {
resolveInitPromise = resolve;
});
- if (task.type == 'text') {
+ if (task.type === 'text') {
// using dummy canvas for pdf context drawing operations
if (!dummyCanvas) {
dummyCanvas = document.createElement('canvas');
@@ -354,7 +354,7 @@ function sendQuitRequest(cb) {
var r = new XMLHttpRequest();
r.open('POST', '/tellMeToQuit?path=' + escape(appPath), false);
r.onreadystatechange = function sendQuitRequestOnreadystatechange(e) {
- if (r.readyState == 4) {
+ if (r.readyState === 4) {
if (cb) {
cb();
}
@@ -409,7 +409,7 @@ function send(url, message, callback) {
r.open('POST', url, true);
r.setRequestHeader('Content-Type', 'application/json');
r.onreadystatechange = function sendTaskResultOnreadystatechange(e) {
- if (r.readyState == 4) {
+ if (r.readyState === 4) {
inFlightRequests--;
// Retry until successful
if (r.status !== 200) {
--
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