browser_canvas-actor-test-01.js 536 B

123456789101112131415161718
  1. /* Any copyright is dedicated to the Public Domain.
  2. http://creativecommons.org/publicdomain/zero/1.0/ */
  3. /**
  4. * Tests if the canvas debugger leaks on initialization and sudden destruction.
  5. * You can also use this initialization format as a template for other tests.
  6. */
  7. function* ifTestingSupported() {
  8. let { target, front } = yield initCallWatcherBackend(SIMPLE_CANVAS_URL);
  9. ok(target, "Should have a target available.");
  10. ok(front, "Should have a protocol front available.");
  11. yield removeTab(target.tab);
  12. finish();
  13. }