Update to Chromium version 127.0.6533.0 (#1313161)

This commit is contained in:
Marshall Greenblatt
2024-06-14 13:01:45 -04:00
parent 4ed13d8c47
commit c44aa35bfc
144 changed files with 877 additions and 910 deletions

View File

@@ -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);
}