Update web-platform-tests to revision ea852ede3b4e0632fd453ed520b26b22692c2d92

This commit is contained in:
WPT Sync Bot 2019-06-08 10:25:33 +00:00
parent 2ab23c79a7
commit 92fa6ede85
109 changed files with 2169 additions and 873 deletions

View file

@ -27,10 +27,14 @@ var t = async_test("The empty string has zero width");
_addTest(function(canvas, ctx) {
deferTest();
step_timeout(t.step_func_done(function () {
ctx.font = '50px CanvasTest';
_assertSame(ctx.measureText("").width, 0, "ctx.measureText(\"\").width", "0");
}), 500);
var f = new FontFace("CanvasTest", "/fonts/CanvasTest.ttf");
document.fonts.add(f);
document.fonts.ready.then(() => {
step_timeout(t.step_func_done(function () {
ctx.font = '50px CanvasTest';
_assertSame(ctx.measureText("").width, 0, "ctx.measureText(\"\").width", "0");
}), 500);
});
});