summaryrefslogtreecommitdiff
path: root/deps/v8/test/unittests/torque/ls-message-unittest.cc
diff options
context:
space:
mode:
authorMichaël Zasso <targos@protonmail.com>2021-11-21 15:58:15 +0100
committerMichaël Zasso <targos@protonmail.com>2021-11-21 16:04:41 +0100
commit3e9939e38cb4ecc7c8a9bd7cff64baca3a897eb3 (patch)
tree036ca0e8d0971c009a181a0ad3a7a158ea7f7e86 /deps/v8/test/unittests/torque/ls-message-unittest.cc
parent42543bcf478debf7a10f1f291e227ad57b0a38b6 (diff)
downloadnode-new-3e9939e38cb4ecc7c8a9bd7cff64baca3a897eb3.tar.gz
deps: update V8 to 9.6.180.14
PR-URL: https://github.com/nodejs/node/pull/40488 Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'deps/v8/test/unittests/torque/ls-message-unittest.cc')
-rw-r--r--deps/v8/test/unittests/torque/ls-message-unittest.cc13
1 files changed, 9 insertions, 4 deletions
diff --git a/deps/v8/test/unittests/torque/ls-message-unittest.cc b/deps/v8/test/unittests/torque/ls-message-unittest.cc
index c6779f978d..063450f5fa 100644
--- a/deps/v8/test/unittests/torque/ls-message-unittest.cc
+++ b/deps/v8/test/unittests/torque/ls-message-unittest.cc
@@ -86,8 +86,11 @@ TEST(LanguageServerMessage, GotoDefinition) {
SourceId definition_id = SourceFileMap::AddSource("file://base.tq");
LanguageServerData::Scope server_data_scope;
- LanguageServerData::AddDefinition({test_id, {1, 0}, {1, 10}},
- {definition_id, {4, 1}, {4, 5}});
+ LanguageServerData::AddDefinition(
+ {test_id, LineAndColumn::WithUnknownOffset(1, 0),
+ LineAndColumn::WithUnknownOffset(1, 10)},
+ {definition_id, LineAndColumn::WithUnknownOffset(4, 1),
+ LineAndColumn::WithUnknownOffset(4, 5)});
// First, check a unknown definition. The result must be null.
GotoDefinitionRequest request;
@@ -171,8 +174,10 @@ TEST(LanguageServerMessage, LintErrorSendsDiagnostics) {
// No compilation errors but two lint warnings.
{
- SourcePosition pos1{test_id, {0, 0}, {0, 1}};
- SourcePosition pos2{test_id, {1, 0}, {1, 1}};
+ SourcePosition pos1{test_id, LineAndColumn::WithUnknownOffset(0, 0),
+ LineAndColumn::WithUnknownOffset(0, 1)};
+ SourcePosition pos2{test_id, LineAndColumn::WithUnknownOffset(1, 0),
+ LineAndColumn::WithUnknownOffset(1, 1)};
Lint("lint error 1").Position(pos1);
Lint("lint error 2").Position(pos2);
}