browser_webgl-actor-test-01.js 431 B

1234567891011121314151617
  1. /* Any copyright is dedicated to the Public Domain.
  2. http://creativecommons.org/publicdomain/zero/1.0/ */
  3. /**
  4. * Tests if a WebGL front can be created for a remote tab target.
  5. */
  6. function* ifWebGLSupported() {
  7. let { target, front } = yield initBackend(SIMPLE_CANVAS_URL);
  8. ok(target, "Should have a target available.");
  9. ok(front, "Should have a protocol front available.");
  10. yield removeTab(target.tab);
  11. finish();
  12. }