mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium version 127.0.6533.0 (#1313161)
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
// can be found in the LICENSE file.
|
||||
|
||||
#include "include/cef_parser.h"
|
||||
#include "include/test/cef_test_helpers.h"
|
||||
#include "tests/gtest/include/gtest/gtest.h"
|
||||
|
||||
// Create the URL using the spec.
|
||||
@@ -479,7 +480,12 @@ TEST(ParserTest, ParseJSONAndReturnErrorInvalid) {
|
||||
CefString error_msg;
|
||||
CefRefPtr<CefValue> value =
|
||||
CefParseJSONAndReturnError(data, JSON_PARSER_RFC, error_msg);
|
||||
CefString expect_error_msg = "Line: 1, column: 1, Unexpected token.";
|
||||
CefString expect_error_msg;
|
||||
if (CefIsFeatureEnabledForTests("UseRustJsonParser")) {
|
||||
expect_error_msg = "expected value at line 1 column 1";
|
||||
} else {
|
||||
expect_error_msg = "Line: 1, column: 1, Unexpected token.";
|
||||
}
|
||||
EXPECT_FALSE(value.get());
|
||||
EXPECT_EQ(expect_error_msg, error_msg);
|
||||
}
|
||||
@@ -489,8 +495,12 @@ TEST(ParserTest, ParseJSONAndReturnErrorTrailingComma) {
|
||||
CefString error_msg;
|
||||
CefRefPtr<CefValue> value =
|
||||
CefParseJSONAndReturnError(data, JSON_PARSER_RFC, error_msg);
|
||||
CefString expect_error_msg =
|
||||
"Line: 1, column: 13, Trailing comma not allowed.";
|
||||
CefString expect_error_msg;
|
||||
if (CefIsFeatureEnabledForTests("UseRustJsonParser")) {
|
||||
expect_error_msg = "trailing comma at line 1 column 13";
|
||||
} else {
|
||||
expect_error_msg = "Line: 1, column: 13, Trailing comma not allowed.";
|
||||
}
|
||||
EXPECT_FALSE(value.get());
|
||||
EXPECT_EQ(expect_error_msg, error_msg);
|
||||
}
|
||||
|
Reference in New Issue
Block a user