/redirect-query>
  </template>
</test-fixture>

<script>
  'use strict';

  function timePasses(ms) {
    return new Promise(function(resolve) {
      window.setTimeout(function() {
        resolve();
      }, ms);
    });
  }

  function makeAbsoluteUrl(path) {
    return window.location.protocol + '//' + window.location.host + path;
  }

  // A window.history.replaceState wrapper that's smart about baseURI.
  function replaceState(path) {
    window.history.replaceState({}, '', makeAbsoluteUrl(path));
  }