зеркало из https://github.com/mozilla/pjs.git
Bug 725349. (Av1) Add a missing space to log messages. r=gavin.sharp.
DONTBUILD (log-string only).
This commit is contained in:
Родитель
5a4217fcaf
Коммит
e4b806ea83
|
@ -39,8 +39,8 @@ function init()
|
||||||
}
|
}
|
||||||
|
|
||||||
description(
|
description(
|
||||||
"Tests that glActiveTexture and glBindTexture work as expected" +
|
"Tests that glActiveTexture and glBindTexture work as expected." +
|
||||||
"Specifically texture targets are per active texture unit.");
|
" Specifically texture targets are per active texture unit.");
|
||||||
|
|
||||||
var canvas2d = document.getElementById("canvas2d");
|
var canvas2d = document.getElementById("canvas2d");
|
||||||
var ctx2d = canvas2d.getContext("2d");
|
var ctx2d = canvas2d.getContext("2d");
|
||||||
|
|
|
@ -78,7 +78,7 @@ function cmpMatrix(a, b, msg)
|
||||||
a.e == b.e &&
|
a.e == b.e &&
|
||||||
a.f == b.f,
|
a.f == b.f,
|
||||||
msg + " - got " + formatMatrix(a)
|
msg + " - got " + formatMatrix(a)
|
||||||
+ ", expected" + formatMatrix(b));
|
+ ", expected " + formatMatrix(b));
|
||||||
}
|
}
|
||||||
|
|
||||||
function roughCmpMatrix(a, b, msg)
|
function roughCmpMatrix(a, b, msg)
|
||||||
|
@ -96,7 +96,7 @@ function roughCmpMatrix(a, b, msg)
|
||||||
Math.abs(b.e - a.e) < tolerance &&
|
Math.abs(b.e - a.e) < tolerance &&
|
||||||
Math.abs(b.f - a.f) < tolerance,
|
Math.abs(b.f - a.f) < tolerance,
|
||||||
msg + " - got " + formatMatrix(a)
|
msg + " - got " + formatMatrix(a)
|
||||||
+ ", expected" + formatMatrix(b));
|
+ ", expected " + formatMatrix(b));
|
||||||
}
|
}
|
||||||
|
|
||||||
function formatMatrix(m)
|
function formatMatrix(m)
|
||||||
|
|
|
@ -48,10 +48,10 @@ function runTests() {
|
||||||
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
||||||
var p = $("plugin1").getLastMouseX();
|
var p = $("plugin1").getLastMouseX();
|
||||||
const delta = 2;
|
const delta = 2;
|
||||||
ok(p-delta <= x && x <= p+delta, "test"+test+" LastMouseX got " + p + " expected" + x +
|
ok(p-delta <= x && x <= p+delta, "test"+test+" LastMouseX got " + p + " expected " + x +
|
||||||
" with fullZoom="+viewer.fullZoom+" MozTransform='"+$("container").style.MozTransform+"'");
|
" with fullZoom="+viewer.fullZoom+" MozTransform='"+$("container").style.MozTransform+"'");
|
||||||
p = $("plugin1").getLastMouseY();
|
p = $("plugin1").getLastMouseY();
|
||||||
ok(p-delta <= y && y <= p+delta, "test"+test+" LastMouseY got " + p + " expected" + y +
|
ok(p-delta <= y && y <= p+delta, "test"+test+" LastMouseY got " + p + " expected " + y +
|
||||||
" with fullZoom="+viewer.fullZoom+" MozTransform='"+$("container").style.MozTransform+"'");
|
" with fullZoom="+viewer.fullZoom+" MozTransform='"+$("container").style.MozTransform+"'");
|
||||||
if (next) next();
|
if (next) next();
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,10 +48,10 @@ function runTests() {
|
||||||
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
||||||
var p = $("plugin1").getLastMouseX();
|
var p = $("plugin1").getLastMouseX();
|
||||||
const delta = 2;
|
const delta = 2;
|
||||||
ok(p-delta <= x && x <= p+delta, "test"+test+" LastMouseX got " + p + " expected" + x +
|
ok(p-delta <= x && x <= p+delta, "test"+test+" LastMouseX got " + p + " expected " + x +
|
||||||
" with fullZoom="+viewer.fullZoom+" MozTransform='"+$("container").style.MozTransform+"'");
|
" with fullZoom="+viewer.fullZoom+" MozTransform='"+$("container").style.MozTransform+"'");
|
||||||
p = $("plugin1").getLastMouseY();
|
p = $("plugin1").getLastMouseY();
|
||||||
ok(p-delta <= y && y <= p+delta, "test"+test+" LastMouseY got " + p + " expected" + y +
|
ok(p-delta <= y && y <= p+delta, "test"+test+" LastMouseY got " + p + " expected " + y +
|
||||||
" with fullZoom="+viewer.fullZoom+" MozTransform='"+$("container").style.MozTransform+"'");
|
" with fullZoom="+viewer.fullZoom+" MozTransform='"+$("container").style.MozTransform+"'");
|
||||||
if (next) next();
|
if (next) next();
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче