<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Security-Policy" content="style-src 'unsafe-inline'">
<script src="resources/dump-as-text.js"></script>
</head>
<body>
<div id="test1">
  FAIL 1/2
</div>
<div id="test2">
  FAIL 2/2
</div>
<script src="resources/inject-style.js"></script>
<script>
  if (document.styleSheets.length === 2)
    document.write("PASS: 2 stylesheets on the page.");
  else
    document.write("FAIL: " + document.styleSheets.length + " stylesheets on the page (should be 2).");
</script>
</body>
</html>
