test_multiple_setups.js (320B)
1 /* Any copyright is dedicated to the Public Domain. 2 http://creativecommons.org/publicdomain/zero/1.0/ */ 3 4 "use strict"; 5 6 let someVar = 0; 7 8 add_setup(() => (someVar = 1)); 9 add_setup(() => (someVar = 2)); 10 11 add_task(async function test_setup_ordering() { 12 Assert.equal(someVar, 2, "Setups should have run in order."); 13 });