un(fakeNow);
      assert.isTrue(idle1Ran);
      assert.isTrue(idle2Ran);
    });
  });


  test('oneLongOneShortIdleCallback', function() {
    withMockedScheduling(function() {
      tr.b.forceAllPendingTasksToRunForTest();

      let idle1Ran = false;
      let idle2Ran = false;
      tr.b.requestIdleCallback(function() {
        fakeNow += 100;
        idle1Ran = true;
      });
      tr.b.requestIdleCallback(function() {
        fakeNow += 1;
        idle2Ran = true;
      });
      fakeNow = 0;
     