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

Unified Diff: LayoutTests/inspector/sources/pretty-print-javascript-template-literals-expected.txt

Issue 1125143004: DevTools: [PrettyPrint] support template literals in pretty-printing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: address comments Created 5 years, 7 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
Index: LayoutTests/inspector/sources/pretty-print-javascript-template-literals-expected.txt
diff --git a/LayoutTests/inspector/sources/pretty-print-javascript-template-literals-expected.txt b/LayoutTests/inspector/sources/pretty-print-javascript-template-literals-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..925409b7c7e4064ea2246ef5d5376159b395820d
--- /dev/null
+++ b/LayoutTests/inspector/sources/pretty-print-javascript-template-literals-expected.txt
@@ -0,0 +1,51 @@
+Verifies JavaScript pretty-printing functionality.
+
+
+Running: simpleLiteral
+====== 8< ------
+var foo = `bar`;
+
+------ >8 ======
+Correct mapping for <foo>
+Correct mapping for <bar>
+
+Running: multilineLiteral
+====== 8< ------
+var foo = `this
+bar`;
+
+------ >8 ======
+Correct mapping for <foo>
+Correct mapping for <bar>
+
+Running: stringSubstitution
+====== 8< ------
+var a = `I have ${credit + cash}$`;
+
+------ >8 ======
+Correct mapping for <credit>
+Correct mapping for <cash>
+
+Running: multipleStringSubstitution
+====== 8< ------
+var a = `${name} has ${credit + cash}${currency ? currency : "$"}`;
+
+------ >8 ======
+Correct mapping for <credit>
+Correct mapping for <cash>
+
+Running: taggedTemplate
+====== 8< ------
+escapeHtml`<div class=${classnName} width=${a + b}/>`;
+
+------ >8 ======
+Correct mapping for <escapeHtml>
+Correct mapping for <width>
+
+Running: escapedApostrophe
+====== 8< ------
+var a=`That`s great!`;
+------ >8 ======
+Correct mapping for <That>
+Correct mapping for <great>
+
« no previous file with comments | « LayoutTests/inspector/sources/pretty-print-javascript-template-literals.html ('k') | Source/devtools/front_end/externs.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698