 +
 +});
 +
++function undefine() {
++  delete define.modules['gclitest/index'];
++  delete define.modules['test/examiner'];
++  delete define.modules['gclitest/testTokenize'];
++  delete define.modules['test/assert'];
++  delete define.modules['gclitest/testSplit'];
++  delete define.modules['gclitest/commands'];
++  delete define.modules['gclitest/testCli'];
++  delete define.modules['gclitest/testHistory'];
++  delete define.modules['gclitest/testRequire'];
++  delete define.modules['gclitest/requirable'];
++
++  delete define.globalDomain.modules['gclitest/index'];
++  delete define.globalDomain.modules['test/examiner'];
++  delete define.globalDomain.modules['gclitest/testTokenize'];
++  delete define.globalDomain.modules['test/assert'];
++  delete define.globalDomain.modules['gclitest/testSplit'];
++  delete define.globalDomain.modules['gclitest/commands'];
++  delete define.globalDomain.modules['gclitest/testCli'];
++  delete define.globalDomain.modules['gclitest/testHistory'];
++  delete define.globalDomain.modules['gclitest/testRequire'];
++  delete define.globalDomain.modules['gclitest/requirable'];
++}
++
 +registerCleanupFunction(function() {
 +  Services.prefs.clearUserPref("devtools.gcli.enable");
-+
++  undefine();
 +  obj = undefined;
 +  define = undefined;
 +  console = undefined;

# HG changeset patch
# Parent d0de6c687fb4c0e07d16d85b047098714f8e1130
# User Joe Walker <jwalker@mozilla.com>
Bug 690822 - GCLI web tests should be capable of being run in the browser


new file mode 100644
--- /dev/null
+++ b/browser/devtools/webconsole/test/browser/browser_gcli_web.js
@@ -0,0 +1,1434 @@
+/*
+ * Copyright 2009-2011 Mozilla Foundation and contributors
+ * Licensed under the New BSD license. See LICENSE.txt or:
