mirror of
https://github.com/servo/servo.git
synced 2025-08-11 00:15:32 +01:00
Update web-platform-tests to revision bda2059150dca8ab47f088b4cc619fcdc1f262fa
This commit is contained in:
parent
3535f3f6c2
commit
7c4281f3da
182 changed files with 7692 additions and 1042 deletions
|
@ -830,7 +830,7 @@ policies and contribution forms [3].
|
|||
/* falls through */
|
||||
default:
|
||||
try {
|
||||
return typeof val + ' "' + truncate(String(val), 60) + '"';
|
||||
return typeof val + ' "' + truncate(String(val), 1000) + '"';
|
||||
} catch(e) {
|
||||
return ("[stringifying object threw " + String(e) +
|
||||
" with type " + String(typeof e) + "]");
|
||||
|
@ -2464,7 +2464,9 @@ policies and contribution forms [3].
|
|||
|
||||
// Create a pattern to match stack frames originating within testharness.js. These include the
|
||||
// script URL, followed by the line/col (e.g., '/resources/testharness.js:120:21').
|
||||
var re = new RegExp((get_script_url() || "\\btestharness.js") + ":\\d+:\\d+");
|
||||
// Escape the URL per http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
|
||||
// in case it contains RegExp characters.
|
||||
var re = new RegExp((get_script_url().replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&') || "\\btestharness.js") + ":\\d+:\\d+");
|
||||
|
||||
// Some browsers include a preamble that specifies the type of the error object. Skip this by
|
||||
// advancing until we find the first stack frame originating from testharness.js.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue