rem: */ 
context: function runInTests(tests) {  var javaIn = tests.QueryInterface(Components.interfaces.nsIXPCTestIn);  var testString = "this is a test string";  var emptyString = "";  var utf8String =        "Non-Ascii 1 byte chars: éâäàåç, 2 byte chars: \u1234 \u1235 \u1236";  var minInt = -Math.pow(2,31);  var maxInt = Math.pow(2,31) - 1;  var maxUInt = Math.pow(2,32) - 1;  var minShort = -Math.pow(2,15);  var maxShort = Math.pow(2,15) - 1;  var maxUShort = Math.pow(2,16) - 1;  var charA = 'a';  var charZ = 'Z';  var charWide = '\u1234';  var maxOctet = Math.pow(2,8) - 1;// Since 64 bit integers are treated as doubles in Javascript, rounding// issues prevent us from actually using the max signed 64 bit values.  //var lowLong = -Math.pow(2,63);  //var highLong = Math.pow(2,63) - 1;  var lowLong = -9223372036854775000;  var highLong = 9223372036854775000;  var minFloat = 1.40129846432481707e-45;  var maxFloat = 3.40282346638528860e+38;  var minDouble = 2.2250738585072014e-308;  var maxDouble = 1.7976931348623157e+308;  tests = new Array(    [ "EchoLong", minInt, minInt, "EchoLong w/ " + minInt ],    [ "EchoLong", maxInt, maxInt, "EchoLong w/ " + maxInt ],    [ "EchoShort", minShort, minShort, "EchoShort w/ " + minShort ],    [ "EchoShort", maxShort, maxShort, "EchoShort w/ " + maxShort ],    [ "EchoChar", charA, charA, "EchoChar w/ " + charA ],    [ "EchoChar", charZ, charZ, "EchoChar w/ " + charZ ],    [ "EchoBoolean", true, true, "EchoBoolean w/ " + true ],    [ "EchoBoolean", false, false, "EchoBoolean w/ " + false ],  /* XXX bug 367793    [ "EchoOctet", 0, 0, "EchoOctet w/ " + 0 ],    [ "EchoOctet", maxOctet, maxOctet, "EchoOctet w/ " + maxOctet ],  */    [ "EchoLongLong", lowLong, lowLong, "EchoLongLong w/ " + lowLong ],    [ "EchoLongLong", highLong, highLong, "EchoLongLong w/ " + highLong ],    [ "EchoUnsignedShort", maxUShort, maxUShort,        "EchoUnsignedShort w/ " + maxUShort ],    [ "EchoUnsignedShort", 0, 0, "EchoUnsignedShort w/ zero" ],    // XXX is this test case correct/valid?    [ "EchoUnsignedShort", -1, maxUShort, "EchoUnsignedShort w/ -1" ],    [ "EchoUnsignedLong", maxUInt, maxUInt, "EchoUnsignedLong w/ " + maxUInt ],    [ "EchoUnsignedLong", 0, 0, "EchoUnsignedLong w/ zero" ],    [ "EchoUnsignedLong", -1, maxUInt, "EchoUnsignedLong w/ -1" ],    [ "EchoFloat", minFloat, minFloat, "EchoFloat w/ " + minFloat ],    [ "EchoFloat", maxFloat, maxFloat, "EchoFloat w/ " + maxFloat ],    [ "EchoDouble", minDouble, minDouble, "EchoDouble w/ " + minDouble ],    [ "EchoDouble", maxDouble, maxDouble, "EchoDouble w/ " + maxDouble ],    [ "EchoWchar", charA, charA, "EchoWchar w/ " + charA ],    [ "EchoWchar", charZ, charZ, "EchoWchar w/ " + charZ ],    [ "EchoWchar", charWide, charWide, "EchoWchar w/ " + charWide ],    [ "EchoString", testString, testString,        "EchoString w/ '" + testString + "'" ],    [ "EchoString", emptyString, emptyString, "EchoString w/ empty string" ],    [ "EchoString", utf8String, utf8String,        "EchoString w/ '" + utf8String + "'" ],    [ "EchoString", null, null, "EchoString w/ null value" ]  );  runTestsArray(javaIn, tests);// Since 64 bit integers are treated as doubles in Javascript, rounding// issues prevent us from actually using the max unsigned 64 bit value.//  var highULong = Math.pow(2,64) - 1;  var highULong = 18446744073709550000;  tests = new Array(    [ "EchoPRBool", false, false, "EchoPRBool w/ false" ],    [ "EchoPRBool", true, true, "EchoPRBool w/ true" ],    [ "EchoPRInt32", minInt, minInt, "EchoPRInt32 w/ " + minInt ],    [ "EchoPRInt32", maxInt, maxInt, "EchoPRInt32 w/ " + maxInt ],    [ "EchoPRInt16", minShort , minShort, "EchoPRInt16 w/ " + minShort ],    [ "EchoPRInt16", maxShort, maxShort, "EchoPRInt16 w/ " + maxShort ],    [ "EchoPRInt64", lowLong, lowLong, "EchoPRInt64 w/ " + lowLong ],    [ "EchoPRInt64", highLong, highLong, "EchoPRInt64 w/ " + highLong ],    [ "EchoPRUint8", maxOctet, maxOctet, "EchoPRUint8 w/ " + maxOctet ],    [ "EchoPRUint8", 0, 0, "EchoPRUint8 w/ zero" ],    [ "EchoPRUint8", -1, maxOctet, "EchoPRUint8 w/ -1" ],    [ "EchoPRUint16", maxUShort, maxUShort, "EchoPRUint16 w/ " + maxUShort ],    [ "EchoPRUint16", 0, 0, "EchoPRUint16 w/ zero" ],    [ "EchoPRUint16", -1, maxUShort, "EchoPRUint16 w/ -1" ],    [ "EchoPRUint32", maxUInt, maxUInt, "EchoPRUint32 w/ " + maxUInt ],    [ "EchoPRUint32", 0, 0, "EchoPRUint32 w/ zero" ],    [ "EchoPRUint32", -1, maxUInt, "EchoPRUint32 w/ -1" ],  /* XXX bug 351871    [ "EchoPRUint64", highULong, highULong, "EchoPRUint64 w/ " + highULong ],  */    [ "EchoPRUint64", 0, 0, "EchoPRUint64 w/ zero" ]  );  runTestsArray(javaIn, tests);}
meta: 10520	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10520/9b5b2cc08030c0395bada80caf471f5b21c5cad2/nsJXTestParams.js/buggy/extensions/java/xpcom/tests/testparams/nsJXTestParams.js