test_module.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // Copyright 2014 The Closure Library Authors. All Rights Reserved.
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS-IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. /**
  15. * @fileoverview A test file for testing goog.module.
  16. */
  17. goog.module('goog.test_module');
  18. goog.setTestOnly('goog.test_module');
  19. goog.module.declareLegacyNamespace();
  20. /** @suppress {extraRequire} */
  21. var testModuleDep = goog.require('goog.test_module_dep');
  22. // Verify that when this module loads the script tag in the next
  23. // line doesn't cause the script tag it is loaded in to be closed
  24. // prematurely.
  25. var aScriptTagShouldntBreakAnything = '<script>hello</script>world';
  26. /** @constructor */
  27. var test = function() {};
  28. // Verify that when this module loads the script tag is not modified by
  29. // escaping code in base.js.
  30. test.CLOSING_SCRIPT_TAG = '</script>';
  31. exports = test;