| Index: third_party/WebKit/LayoutTests/http/tests/inspector/text-source-map.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/text-source-map.html b/third_party/WebKit/LayoutTests/http/tests/inspector/text-source-map.html
|
| index 2e5f1f137a87f30b7ea7f0c73ec0275639e16526..671b042aae8b948669a827e310951e68103e1009 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/inspector/text-source-map.html
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/inspector/text-source-map.html
|
| @@ -72,8 +72,8 @@ function test()
|
| function testNoMappingEntry(next)
|
| {
|
| var mappingPayload = {
|
| - "mappings":"AAAA,C,CAAE;",
|
| - "sources":["example.js"]
|
| + "mappings": "AAAA,C,CAAE;",
|
| + "sources": ["example.js"]
|
| };
|
| var mapping = new SDK.TextSourceMap("compiled.js", "source-map.json", mappingPayload);
|
| checkMapping(0, 0, "example.js", 0, 0, mapping);
|
| @@ -95,6 +95,28 @@ function test()
|
| next();
|
| },
|
|
|
| + function testNonSortedMappings(next)
|
| + {
|
| + /*
|
| + example.js:
|
| + ABCD
|
| +
|
| + compiled.js:
|
| + DCBA
|
| + */
|
| + var mappingPayload = {
|
| + // mappings go in reversed direction.
|
| + "mappings": "GAAA,DAAC,DAAC,DAAC",
|
| + "sources": ["example.js"]
|
| + };
|
| + var mapping = new SDK.TextSourceMap("compiled.js", "source-map.json", mappingPayload);
|
| + checkMapping(0, 0, "example.js", 0, 3, mapping);
|
| + checkMapping(0, 1, "example.js", 0, 2, mapping);
|
| + checkMapping(0, 2, "example.js", 0, 1, mapping);
|
| + checkMapping(0, 3, "example.js", 0, 0, mapping);
|
| + next();
|
| + },
|
| +
|
| function testSections(next)
|
| {
|
| var mappingPayload = {
|
|
|