@@ -245,6 +245,7 @@ public void testInputSourceMapInline() {
245
245
SourceMapConsumerV3 sourceMap = inputSourceMap .getSourceMap (null );
246
246
assertThat (sourceMap .getOriginalSources ()).containsExactly ("foo.ts" );
247
247
assertThat (sourceMap .getOriginalSourcesContent ()).isNull ();
248
+ assertThat (sourceMap .getOriginalNames ()).isEmpty ();
248
249
}
249
250
250
251
private static final String SOURCE_MAP_TEST_CONTENT =
@@ -276,6 +277,7 @@ public void testInputSourceMapInlineContent() {
276
277
SourceMapConsumerV3 sourceMap = inputSourceMap .getSourceMap (null );
277
278
assertThat (sourceMap .getOriginalSources ()).containsExactly ("../test/foo.ts" );
278
279
assertThat (sourceMap .getOriginalSourcesContent ()).containsExactly (SOURCE_MAP_TEST_CONTENT );
280
+ assertThat (sourceMap .getOriginalNames ()).isEmpty ();
279
281
}
280
282
281
283
@ Test
@@ -297,6 +299,8 @@ public void testResolveRelativeSourceMap() throws Exception {
297
299
for (SourceMapInput inputSourceMap : compiler .inputSourceMaps .values ()) {
298
300
SourceMapConsumerV3 sourceMap = inputSourceMap .getSourceMap (null );
299
301
assertThat (sourceMap .getOriginalSources ()).containsExactly ("foo.ts" );
302
+ assertThat (sourceMap .getOriginalSourcesContent ()).isNull ();
303
+ assertThat (sourceMap .getOriginalNames ()).isEmpty ();
300
304
}
301
305
}
302
306
@@ -322,6 +326,8 @@ public void testResolveRelativeDirSourceMap() throws Exception {
322
326
for (SourceMapInput inputSourceMap : compiler .inputSourceMaps .values ()) {
323
327
SourceMapConsumerV3 sourceMap = inputSourceMap .getSourceMap (null );
324
328
assertThat (sourceMap .getOriginalSources ()).containsExactly ("foo.ts" );
329
+ assertThat (sourceMap .getOriginalSourcesContent ()).isNull ();
330
+ assertThat (sourceMap .getOriginalNames ()).isEmpty ();
325
331
}
326
332
}
327
333
@@ -398,6 +404,7 @@ public void testApplyInputSourceMaps() throws Exception {
398
404
assertThat (mapping .getIdentifier ()).isEqualTo ("testSymbolName" );
399
405
assertThat (consumer .getOriginalSources ()).containsExactly ("input.js" , "input.ts" );
400
406
assertThat (consumer .getOriginalSourcesContent ()).isNull ();
407
+ assertThat (consumer .getOriginalNames ()).containsExactly ("testSymbolName" );
401
408
}
402
409
403
410
@ Test
@@ -422,6 +429,7 @@ public void testKeepInputSourceMapsSourcesContent() throws Exception {
422
429
consumer .parse (out .toString ());
423
430
assertThat (consumer .getOriginalSources ()).containsExactly ("temp/test/foo.ts" );
424
431
assertThat (consumer .getOriginalSourcesContent ()).containsExactly (SOURCE_MAP_TEST_CONTENT );
432
+ assertThat (consumer .getOriginalNames ()).containsExactly ("X" , "input" , "y" , "console" , "log" );
425
433
}
426
434
427
435
@ Test
0 commit comments