https://github.com/web-platform-tests/wpt
Raw File
Tip revision: ae999f1c2fe70a3195d00d214002242227b63b62 authored by Luke Bjerring on 16 May 2018, 02:06:44 UTC
Fix nits as per review
Tip revision: ae999f1
sync-no-progress.any.js
test(t => {
  let xhr = new XMLHttpRequest();
  let loadEventFired = false;
  xhr.onprogress = t.unreached_func('progress event should not be fired');
  xhr.onload = () => {
    loadEventFired = true;
  };
  xhr.open('GET', 'resources/trickle.py?count=4&delay=150', false);
  xhr.send();
  // Check the load event as a sanity check that the test is working.
  assert_true(loadEventFired, 'load event should have fired');
}, 'progress event should not be fired by sync XHR');
back to top