瀏覽代碼

Adapt test expectations to V8 error message changes

V8 5.1 uses slightly changed SyntaxError messages.
This adapts our tests as needed (for support of V8 5.1 as well
as older versions)
Stefan Siegl 9 年之前
父節點
當前提交
67269ddfc4
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      tests/checkstring.phpt
  2. 1 1
      tests/checkstring_compile.phpt

+ 1 - 1
tests/checkstring.phpt

@@ -20,5 +20,5 @@ Deprecated: Function V8Js::checkString() is deprecated in %s on line %d
 bool(true)
 bool(true)
 
 
 Deprecated: Function V8Js::checkString() is deprecated in %s on line %d
 Deprecated: Function V8Js::checkString() is deprecated in %s on line %d
-string(60) "V8Js::checkString():1: SyntaxError: Unexpected token ILLEGAL"
+string(%d) "V8Js::checkString():1: SyntaxError: %s"
 ===EOF===
 ===EOF===

+ 1 - 1
tests/checkstring_compile.phpt

@@ -17,5 +17,5 @@ try {
 ===EOF===
 ===EOF===
 --EXPECTF--
 --EXPECTF--
 resource(%d) of type (V8Js script)
 resource(%d) of type (V8Js script)
-string(62) "V8Js::compileString():1: SyntaxError: Unexpected token ILLEGAL"
+string(%d) "V8Js::compileString():1: SyntaxError: %s"
 ===EOF===
 ===EOF===