test_bug666666.html 907 B

123456789101112131415161718192021222324252627282930313233
  1. <!DOCTYPE HTML>
  2. <html>
  3. <!--
  4. https://bugzilla.mozilla.org/show_bug.cgi?id=666666
  5. -->
  6. <head>
  7. <title>Test for Bug 666666</title>
  8. <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
  9. <script type="application/javascript" src="reflect.js"></script>
  10. <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
  11. </head>
  12. <body>
  13. <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=666666">Mozilla Bug 666666</a>
  14. <p id="display"></p>
  15. <div id="content" style="display: none">
  16. </div>
  17. <pre id="test">
  18. <script type="application/javascript">
  19. /** Test for Bug 666666 **/
  20. ["audio", "video"].forEach(function(element) {
  21. reflectLimitedEnumerated({
  22. element: document.createElement(element),
  23. attribute: "preload",
  24. validValues: ["none", "metadata", "auto"],
  25. invalidValues: ["cheesecake", ""]
  26. });
  27. });
  28. </script>
  29. </pre>
  30. </body>
  31. </html>