("2d");
    context.beginPath();
    context.moveTo(0,0);
    context.lineTo(300,150);
    context.stroke();
    function testPaintEntries() {
        const bufferedEntries = performance.getEntriesByType('paint');
        if (bufferedEntries.length < 2) {
            t.step_timeout(function() {
                testPaintEntries();
            }, 20);
            return;
        }
        t.step(function() {
            assert_equals(bufferedEntries.length, 2, "There should be two paint timing instances.");
 