browser_setup_runs_first.js (268B)
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 = 1; 7 8 add_task(() => { 9 is(someVar, 2, "Should get updated by setup which runs first."); 10 }); 11 12 add_setup(() => { 13 someVar = 2; 14 });