Files
tubestation/browser/components/uitour/test/browser_closeTab.js
2016-02-01 14:55:20 -08:00

17 lines
403 B
JavaScript

"use strict";
var {classes: Cc, interfaces: Ci, utils: Cu, results: Cr} = Components;
var gTestTab;
var gContentAPI;
var gContentWindow;
add_task(setup_UITourTest);
add_UITour_task(function* test_closeTab() {
// Setting gTestTab to null indicates that the tab has already been closed,
// and if this does not happen the test run will fail.
yield gContentAPI.closeTab();
gTestTab = null;
});