Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(515)

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/persistence/automapping-sourcemap-nameclash.html

Issue 2698183003: DevTools: teach automapping to map complex sourcemap setups. (Closed)
Patch Set: rebaseline Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/persistence/automapping-sourcemap-nameclash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/inspector/persistence/automapping-sourcemap-nameclash.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/automapping-sourcemap-nameclash.html b/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/automapping-sourcemap-nameclash.html
new file mode 100644
index 0000000000000000000000000000000000000000..4e30f4070174fe3bf3bfeedfc4c4b9b99144fc91
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/automapping-sourcemap-nameclash.html
@@ -0,0 +1,63 @@
+<html>
+<head>
+<script src="../inspector-test.js"></script>
+<script src="../isolated-filesystem-test.js"></script>
+<script src="../debugger-test.js"></script>
+<script src="./persistence-test.js"></script>
+<script src="./automapping-test.js"></script>
+<script src="./resources/sourcemap-name-clash/out.js"></script>
+<script>
+
+function test()
+{
+ InspectorTest.overrideNetworkModificationTime({
+ "http://127.0.0.1:8000/inspector/persistence/resources/sourcemap-name-clash/out.js": null
+ });
+
+ Promise.all([
+ getResourceContent("out.js"),
+ getResourceContent("out.js? [sm]")
+ ]).then(onResourceContents);
+
+ function onResourceContents(contents)
+ {
+ var fs = new InspectorTest.TestFileSystem("file:///var/www");
+ InspectorTest.addFiles(fs, {
+ "out.js": {
+ content: contents[0],
+ time: new Date("December 1, 1989")
+ },
+ "src/out.js": {
+ content: contents[1],
+ time: new Date("December 1, 1989")
+ }
+ });
+ fs.reportCreated(onFileSystemCreated);
+ }
+
+ function onFileSystemCreated()
+ {
+ var automappingTest = new InspectorTest.AutomappingTest(Workspace.workspace);
+ automappingTest.waitUntilMappingIsStabilized(InspectorTest.completeTest.bind(InspectorTest));
+ }
+
+ function getResourceContent(name)
+ {
+ var fulfill;
+ var promise = new Promise(x => fulfill = x);
+ InspectorTest.waitForScriptSource(name, onSource);
+ return promise;
+
+ function onSource(uiSourceCode)
+ {
+ uiSourceCode.requestContent().then(content => fulfill(content));
+ }
+ }
+}
+</script>
+</head>
+<body onload="runTest()">
+<p>Verify that sourcemap sources are mapped event when sourcemap compiled url matches with one of the
+source urls.</p>
+</body>
+</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/persistence/automapping-sourcemap-nameclash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698