summaryrefslogtreecommitdiffstats
path: root/dom/wifi/test/marionette/test_wifi_enable_api.js
blob: 3728330a28c3849553658e4beb8f16ee11012557 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/publicdomain/zero/1.0/ */

MARIONETTE_TIMEOUT = 60000;
MARIONETTE_HEAD_JS = 'head.js';

gTestSuite.doTest(function() {
  return Promise.resolve()
    .then(() => gTestSuite.ensureWifiEnabled(false, true))
    .then(() => gTestSuite.requestWifiEnabled(true, true))
    .then(() => gTestSuite.requestWifiEnabled(false, true))
    .then(() => gTestSuite.ensureWifiEnabled(true, true));
});