rem: gVersion = 170; 
add: gVersion = 180; 
context: function jsTestDriverBrowserInit(){  if (typeof dump != 'function')  {    dump = print;  }  optionsInit();  optionsClear();  if (document.location.search.indexOf('?') != 0)  {    // not called with a query string    return;  }  var re = /test=([^;]+);language=(language|type);([a-zA-Z0-9.=;\/]+)/;  var matches = re.exec(document.location.search);  // testpath http://machine/path-to-suite/sub-suite/test.js  var testpath  = matches[1];  var attribute = matches[2];  var value     = matches[3];  if (testpath)  {    gTestPath = testpath;  }  var ise4x = /e4x\//.test(testpath);  if (value.indexOf('1.1') != -1)  {    gVersion = 110;  }  else if (value.indexOf('1.2') != -1)  {    gVersion = 120;  }  else if (value.indexOf('1.3') != -1)  {    gVersion = 130;  }  else if (value.indexOf('1.4') != -1)  {    gVersion = 140;  }  else if(value.indexOf('1.5') != -1)  {    gVersion = 150;  }  else if(value.indexOf('1.6') != -1)  {    gVersion = 160;  }  else if(value.indexOf('1.7') != -1)  {    gVersion = 170;  }  else if(value.indexOf('1.8') != -1)  {    gVersion = 170;  }  else if(value.indexOf('1.9') != -1)  {    gVersion = 170;  }  var testpathparts = testpath.split(/\//);  if (testpathparts.length < 3)  {    // must have at least suitepath/subsuite/testcase.js    return;  }  var suitepath = testpathparts.slice(0,testpathparts.length-2).join('/');  var subsuite = testpathparts[testpathparts.length - 2];  var test     = testpathparts[testpathparts.length - 1];  // should be set in the test file from now on  //gTestfile = test;/* * loaded in the js-test-driver-*.html now outputscripttag('shell.js', attribute, value, false); outputscripttag('browser.js', attribute, value, false);*/  outputscripttag(suitepath + '/shell.js', attribute, value,                  ise4x);  outputscripttag(suitepath + '/browser.js', attribute, value,                  ise4x);  outputscripttag(suitepath + '/' + subsuite + '/shell.js', attribute, value,                  ise4x);  outputscripttag(suitepath + '/' + subsuite + '/browser.js', attribute, value,                  ise4x);  outputscripttag(suitepath + '/' + subsuite + '/' + test, attribute, value,                  ise4x);  document.write('<title>' + suitepath + '/' + subsuite + '/' + test +                 '<\/title>');  outputscripttag('js-test-driver-end.js', attribute, value,                  false);  return;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8395/e22593d9816dfe81de9624f36e5a97a37a1edb02/browser.js/buggy/js/tests/browser.js