test_bug623437.html 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <!DOCTYPE HTML>
  2. <html>
  3. <!--
  4. https://bugzilla.mozilla.org/show_bug.cgi?id=623437
  5. -->
  6. <head>
  7. <title>Test for Bug 623437</title>
  8. <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
  9. <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
  10. </head>
  11. <body>
  12. <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=623437">Mozilla Bug 623437</a>
  13. <p id="display"></p>
  14. <div id="content" style="display: none">
  15. </div>
  16. <pre id="test">
  17. <script type="application/javascript">
  18. /** Test for Bug 623437 **/
  19. var c = document.createElement("canvas").getContext("2d");
  20. var seenArcToFirst;
  21. var seenArc = false;
  22. var seenArcTo = false;
  23. for (var i in c) {
  24. if (i == "arc") {
  25. seenArc = true;
  26. if (!seenArcTo)
  27. seenArcToFirst = false;
  28. }
  29. if (i == "arcTo") {
  30. seenArcTo = true;
  31. if (!seenArc)
  32. seenArcToFirst = true;
  33. }
  34. }
  35. is(seenArc, true, "Should see arc");
  36. is(seenArcTo, true, "Should see arcTo");
  37. is(seenArcToFirst, true, "Should see arcTo before arc");
  38. </script>
  39. </pre>
  40. </body>
  41. </html>