Author: mikesamuel
Date: Wed Jan 21 15:22:06 2009
New Revision: 3195
Modified:
trunk/tests/com/google/caja/plugin/domita_test.html
Log:
Issue 11950 http://codereview.appspot.com/11950
Fix sourcing of console.js in domita_test
Some logging code was moved out of jsunit.js into c/g/caja/console.js,
but the src of the script element added to domita_test.js was wrong
which broke domita_test on IE 6 & 7.
[email protected]
Modified: trunk/tests/com/google/caja/plugin/domita_test.html
==============================================================================
--- trunk/tests/com/google/caja/plugin/domita_test.html (original)
+++ trunk/tests/com/google/caja/plugin/domita_test.html Wed Jan 21 15:22:06
2009
@@ -18,7 +18,7 @@
<head id="head">
<title>Domita</title>
- <script src="../../../../console.js"></script>
+ <script src="../console.js"></script>
<script src="../cajita.js" onerror="console.error(this.src)"></script>
<script src="../../../../js/jsunit/2.2/jsUnitCore.js"></script>
<script src="jsunit.js"></script>
@@ -84,11 +84,7 @@
})();</script>
<script type="text/javascript">(function () {
- if (console) {
- ___.setLogFunc(function(msg) {
- console.log(msg);
- });
- }
+ ___.setLogFunc(function(msg) { console.log(msg); });
var testImports = ___.copy(___.sharedImports);
if (valijaMaker) { testImports.$v =
valijaMaker.CALL___(testImports); }
@@ -103,7 +99,7 @@
protocol: 'http:',
search: '?q=getit'
};
-
+
___.getNewModuleHandler().setImports(testImports);
attachDocumentStub(
'-xyz___',