https://github.com/web-platform-tests/wpt
Revision 586299b9349fd94fd29891eb11f3c4132d686ff1 authored by Chris Nardi on 15 April 2018, 04:51:18 UTC, committed by Chris Nardi on 15 April 2018, 15:41:48 UTC
According to https://drafts.csswg.org/cssom/#serialize-a-url, the serialization of a URL always includes double-quotes, and per https://drafts.csswg.org/css-values/#relative-urls, if a URL appears in a computed style, it is resolved to an absolute URL. Adjust background-332.html to match the spec.
1 parent fd2badf
Raw File
Tip revision: 586299b9349fd94fd29891eb11f3c4132d686ff1 authored by Chris Nardi on 15 April 2018, 04:51:18 UTC
Correct serialization of URL in background-332.html
Tip revision: 586299b
getCurrentPosition_permission-manual.html
<!DOCTYPE HTML>
<meta charset='utf-8'>
<title>Call getCurrentPosition, check that there is UI appearing with the document host</title>
<link rel='help' href='http://www.w3.org/TR/geolocation-API/#privacy_for_uas'>

<p>Clear all Geolocation permissions before running this test.</p>

<p>Test passes if there is a permission prompt including the host <strong id='host'></strong> and no FAIL.</p>
<div id='log'></div>

<script>
// Rewrite http://dev.w3.org/geo/api/test-suite/t.html?00018
try {
  var dummyFunction = function() {};
  window.navigator.geolocation.getCurrentPosition(dummyFunction, dummyFunction);

  document.getElementById('host').innerHTML = window.location.hostname;
} catch (e) {
  document.getElementById('log').innerHTML = 'FAIL: an exception was thrown unexpectedly: ' + e.message;
}
</script>
back to top