1 description("Test that setting a font with size in 'ex' units doesn't crash.");
3 ctx = document.createElement('canvas').getContext('2d');
5 ctx.font = "5ex sans-serif";
7 size = parseInt(ctx.font.substr(0, 2));
8 family = ctx.font.substr(5);
10 shouldBeCloseTo("size", 25, 10);
11 shouldBe("family", "'sans-serif'");