michael@0: /* Any copyright is dedicated to the Public Domain. michael@0: http://creativecommons.org/publicdomain/zero/1.0/ */ michael@0: michael@0: /** michael@0: * Tests if a program actor is sent when WebGL programs are linked, michael@0: * and that the corresponding vertex and fragment actors can be retrieved. michael@0: */ michael@0: michael@0: function ifWebGLSupported() { michael@0: let [target, debuggee, front] = yield initBackend(SIMPLE_CANVAS_URL); michael@0: front.setup({ reload: true }); michael@0: michael@0: let programActor = yield once(front, "program-linked"); michael@0: ok(programActor, michael@0: "A program actor was sent along with the 'program-linked' notification.") michael@0: michael@0: let vertexShader = yield programActor.getVertexShader(); michael@0: ok(programActor, michael@0: "A vertex shader actor was retrieved from the program actor."); michael@0: michael@0: let fragmentShader = yield programActor.getFragmentShader(); michael@0: ok(programActor, michael@0: "A fragment shader actor was retrieved from the program actor."); michael@0: michael@0: yield removeTab(target.tab); michael@0: finish(); michael@0: }