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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/xsl/xslt-translate.html

Issue 1897383004: Added XSLT translate test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/xsl/xslt-translate-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
3 <script>
4 description("Must not crash, and transforms to 'Simple_sting_line'. Test for htt p://crbug.com/599427.");
5
6 var stylesheetXml =
7 '<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1 .0">' +
8 '<xsl:template match="/">' +
9 '<div>' +
10 '<xsl:value-of select=\'translate("Simple sting line"," ","_")\' />' +
11 '</div>' +
12 '</xsl:template>' +
13 '</xsl:stylesheet>';
14
15 var parser = new DOMParser();
16 var doc = parser.parseFromString(stylesheetXml, 'text/xml');
17 var xslt = parser.parseFromString(stylesheetXml, 'text/xml');
18 var processor = new XSLTProcessor();
19 processor.importStylesheet(xslt);
20
21 shouldBe('processor.transformToFragment(doc, document).textContent', '"Simple_st ing_line"');
22 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/xsl/xslt-translate-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698