| Index: test/common.js | 
| =================================================================== | 
| --- a/test/common.js | 
| +++ b/test/common.js | 
| @@ -14,22 +14,26 @@ | 
| * You should have received a copy of the GNU General Public License | 
| * along with Adblock Plus.  If not, see <http://www.gnu.org/licenses/>. | 
| */ | 
|  | 
| function addScript(url) | 
| { | 
| var script = document.createElement("script"); | 
| script.src = url; | 
| -  if (js17supported) | 
| -    script.type = "text/javascript;version=1.7"; | 
| -  else | 
| +  if (!js17supported) | 
| script.src += "?backcompat"; | 
| script.async = false; | 
| document.head.appendChild(script); | 
| return script; | 
| } | 
|  | 
| function require(module) | 
| { | 
| +  if (require.sources.hasOwnProperty(module)) | 
| +  { | 
| +    require.scopes[module] = evalModule(require.sources[module]); | 
| +    delete require.sources[module]; | 
| +  } | 
| return require.scopes[module]; | 
| } | 
| require.scopes = {}; | 
| +require.sources = {}; | 
|  |