Upstream version 5.34.98.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / http / tests / inspector / styles / resources / xsl-transformed.xsl
1 <?xml version='1.0' encoding='utf-8'?>
2 <xsl:stylesheet version="1.0"
3                 id="stylesheet"
4                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
5     <xsl:template match="items">
6         <html>
7         <head>
8         <script src="../inspector-test.js"></script>
9         <script src="../elements-test.js"></script>
10         <script src="../resources-test.js"></script>
11         <script>
12         function test()
13         {
14             InspectorTest.reloadPage(step1);
15
16             function step1()
17             {
18                 InspectorTest.runAfterResourcesAreFinished(["xsl-transformed.xsl"], InspectorTest.expandElementsTree.bind(InspectorTest, step2));
19             }
20
21             function step2()
22             {
23                 InspectorTest.dumpElementsTree();
24                 InspectorTest.completeTest();
25             }
26         }
27         </script>
28         </head>
29         <body onload="runTest()">
30         <p>Tests that XSL-transformed documents in the main frame are rendered correctly in the Elements panel. <a href="https://bugs.webkit.org/show_bug.cgi?id=111313">Bug 111313</a></p>
31         <xsl:for-each select="item">
32           <span><xsl:value-of select="."/></span>
33         </xsl:for-each>
34         </body>
35         </html>
36     </xsl:template>
37 </xsl:stylesheet>
38