diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2019-03-06 12:41:27 +0100 |
---|---|---|
committer | Alexander Shalamov <alexander.shalamov@mapbox.com> | 2019-05-06 19:20:17 +0300 |
commit | cac83398cf230dfaa5559b94bd7c75b7dcf03940 (patch) | |
tree | 509ad513c9e443d51caf339068cf0d195518e5c4 /test/map/map.test.cpp | |
parent | e69efb996d32c86f00b08878a61c6f0a47c81932 (diff) | |
download | qtlocation-mapboxgl-cac83398cf230dfaa5559b94bd7c75b7dcf03940.tar.gz |
[core] show line and col instead of offset when JSON parsing failsupstream/json-parse-line-col
Diffstat (limited to 'test/map/map.test.cpp')
-rw-r--r-- | test/map/map.test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/map/map.test.cpp b/test/map/map.test.cpp index 3af2acdb8b..b5b2c77428 100644 --- a/test/map/map.test.cpp +++ b/test/map/map.test.cpp @@ -373,7 +373,7 @@ TEST(Map, SetStyleInvalidJSON) { auto observer = Log::removeObserver(); auto flo = static_cast<FixtureLogObserver*>(observer.get()); EXPECT_EQ(1u, flo->count({ EventSeverity::Error, Event::ParseStyle, -1, - "Failed to parse style: Invalid value. at offset 0" })); + "Failed to parse style on line 1 col 0: Invalid value." })); auto unchecked = flo->unchecked(); EXPECT_TRUE(unchecked.empty()) << unchecked; } |