jscript_test.html 770 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <!DOCTYPE html>
  2. <html>
  3. <!--
  4. Copyright 2006 The Closure Library Authors. All Rights Reserved.
  5. Use of this source code is governed by the Apache License, Version 2.0.
  6. See the COPYING file for details.
  7. -->
  8. <head>
  9. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  10. <meta charset="UTF-8" />
  11. <title>
  12. Closure Unit Tests - goog.userAgent.jscript
  13. </title>
  14. <script>
  15. // Mock JScript functions
  16. function ScriptEngine() {
  17. return 'JScript';
  18. }
  19. function ScriptEngineMajorVersion() {
  20. return 1;
  21. }
  22. function ScriptEngineMinorVersion() {
  23. return 2;
  24. }
  25. function ScriptEngineBuildVersion() {
  26. return 3456;
  27. }
  28. </script>
  29. <script src="../base.js">
  30. </script>
  31. <script>
  32. goog.require('goog.userAgent.jscriptTest');
  33. </script>
  34. </head>
  35. <body>
  36. </body>
  37. </html>