Bug 1528937 Comment 23 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

With respect to setting a pref just on the subtest, it would be good to generalize the `test_urls` array so that it's an array of objects similar to how the mochitest-plain `test_group_*` tests work. e.g.:

```
  var test_urls = [
    { "file": httpURL("helper_fission_basic.html") },
    { "file": httpURL("helper_fission_tap.html"), "prefs": [
        "apz.max_tap_time", 10000
    ]},
    // add additional tests here
  ];
```

And then do a `pushPrefEnv`/`popPrefEnv` inside the `test_urls` loop.
With respect to setting a pref just on the subtest, it would be good to generalize the `test_urls` array so that it's an array of objects similar to how the mochitest-plain `test_group_*` tests work. e.g.:

```
  var test_urls = [
    { "file": httpURL("helper_fission_basic.html") },
    { "file": httpURL("helper_fission_tap.html"), "prefs": [
        ["apz.max_tap_time", 10000],
    ]},
    // add additional tests here
  ];
```

And then do a `pushPrefEnv`/`popPrefEnv` inside the `test_urls` loop.

Back to Bug 1528937 Comment 23