Searched refs:testErrorToString (Results 1 – 1 of 1) sorted by relevance
/external/v8/test/mjsunit/ |
D | error-tostring.js | 58 function testErrorToString(nameValue, messageValue) { function 78 assertEquals(["Error",[1,3]], testErrorToString(undefined, undefined)); 79 assertEquals(["e1",[1,2,3]], testErrorToString("e1", undefined)); 80 assertEquals(["e1: null",[1,2,3,4]], testErrorToString("e1", null)); 81 assertEquals(["e1",[1,2,3,4]], testErrorToString("e1", "")); 82 assertEquals(["Error: e2",[1,3,4]], testErrorToString(undefined, "e2")); 83 assertEquals(["null: e2",[1,2,3,4]], testErrorToString(null, "e2")); 84 assertEquals(["e2",[1,2,3,4]], testErrorToString("", "e2")); 85 assertEquals(["e1: e2",[1,2,3,4]], testErrorToString("e1", "e2"));
|