Author: dmaliarevich
Date: 2011-11-22 07:30:55 -0500 (Tue, 22 Nov 2011)
New Revision: 36530
Added:
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/img/jbide9975(
pic ).png
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/jbide9975(
1 )/
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/jbide9975(
1 )/CSSUrlQuotes.html
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/jbide9975(
1 )/CSSUrlQuotes.html.xml
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/jbide9975(
1 )/jbide9975( pic ).png
Modified:
trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlComponentContentTest.java
Log:
https://issues.jboss.org/browse/JBIDE-9975 - JUnit with ContentTest for quotes in css url
was added.
Added:
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/img/jbide9975(
pic ).png
===================================================================
(Binary files differ)
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/img/jbide9975(
pic ).png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/jbide9975(
1 )/CSSUrlQuotes.html
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/jbide9975(
1 )/CSSUrlQuotes.html (rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/jbide9975(
1 )/CSSUrlQuotes.html 2011-11-22 12:30:55 UTC (rev 36530)
@@ -0,0 +1,24 @@
+<html>
+<body>
+<!-- Check that this url will be added to style and JBDS will put the full file path
in it -->
+<!-- Checking escaping slashes in this case -->
+<div ID="id1" style="background: url(../../img/jbide9975\(\ pic\
\).png);">
+[GOOD] Checking escaping slashes in this case
+</div>
+<!-- Check that this url will be added to style and JBDS will put the full file path
in it -->
+<!-- Checking putting url into quotes -->
+<div ID="id2" style="background: url('jbide9975( pic
).png');">
+[GOOD] Checking putting url into quotes
+</div>
+<!-- Check that this url will NOT be added to style and JBDS will ignore it also
-->
+<!-- Checking bad escaping example -->
+<div ID="id3" style="background: url(../../img/jbide9975( pic\
\).png);">
+[BAD] Checking bad escaping example
+</div>
+<!-- Check that this url will NOT be added to style and JBDS will ignore it also
-->
+<!-- Checking example with no escaping at all-->
+<div ID="id4" style="background: url(jbide9975( pic ).png);">
+[BAD] Checking example with no escaping at all
+</div>
+</body>
+</html>
Copied:
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/jbide9975(
1 )/CSSUrlQuotes.html.xml (from rev 36432,
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/block/ul.html.xml)
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/jbide9975(
1 )/CSSUrlQuotes.html.xml (rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/jbide9975(
1 )/CSSUrlQuotes.html.xml 2011-11-22 12:30:55 UTC (rev 36530)
@@ -0,0 +1,32 @@
+<tests>
+ <test id="id1">
+ <DIV
+ STYLE="/.*WebContent/img/jbide9975\(%20pic%20\).png.*\) repeat scroll 0% 0%
transparent; -moz-user-modify: read-write;/">
+ <SPAN CLASS="vpe-text">
+ [GOOD] Checking escaping slashes in this case
+ </SPAN>
+ </DIV>
+ </test>
+ <test id="id2">
+ <DIV
+ STYLE="/.*WebContent/pages/jbide9975\(%201%20\)/jbide9975\(%20pic%20\).png.*\)
repeat scroll 0% 0% transparent; -moz-user-modify: read-write;/">
+ <SPAN CLASS="vpe-text">
+ [GOOD] Checking putting url into quotes
+ </SPAN>
+ </DIV>
+ </test>
+ <test id="id3">
+ <DIV STYLE="-moz-user-modify: read-write;">
+ <SPAN CLASS="vpe-text">
+ [BAD] Checking bad escaping example
+ </SPAN>
+ </DIV>
+ </test>
+ <test id="id4">
+ <DIV STYLE="-moz-user-modify: read-write;">
+ <SPAN CLASS="vpe-text">
+ [BAD] Checking example with no escaping at all
+ </SPAN>
+ </DIV>
+ </test>
+</tests>
\ No newline at end of file
Added:
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/jbide9975(
1 )/jbide9975( pic ).png
===================================================================
(Binary files differ)
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/jbide9975(
1 )/jbide9975( pic ).png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Modified:
trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlComponentContentTest.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlComponentContentTest.java 2011-11-22
12:06:59 UTC (rev 36529)
+++
trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlComponentContentTest.java 2011-11-22
12:30:55 UTC (rev 36530)
@@ -481,6 +481,10 @@
performContentTest("components/other/xmp.xhtml"); //$NON-NLS-1$
}
+ public void testCssUrl() throws Throwable {
+ performContentTest("jbide9975( 1 )/CSSUrlQuotes.html"); //$NON-NLS-1$
+ }
+
protected String getTestProjectName() {
return HtmlAllTests.IMPORT_PROJECT_NAME;
}