| OLD | NEW |
| (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> |
| OLD | NEW |