[
https://issues.jboss.org/browse/JBIDE-15194?page=com.atlassian.jira.plugi...
]
Alexey Kazakov commented on JBIDE-15194:
----------------------------------------
{code}
-------------------------------------------------------------------------------
Test set: org.jboss.tools.jst.web.ui.test.JstWebUiAllTests
-------------------------------------------------------------------------------
Tests run: 87, Failures: 8, Errors: 0, Skipped: 0, Time elapsed: 37.52 sec <<<
FAILURE!
testEditor(org.jboss.tools.jst.web.ui.test.JBossToolsEditorTest) Time elapsed: 1.856
sectestInsertSingleTagWithJcCssInHtmlFileWithNoSelection(org.jboss.tools.jst.web.ui.test.InsertJSCSSPaletteEntryTest)
Time elapsed: 2.939
sectestInsertMultiTagWithJcCssInHtmlHeadFileWithNoSelection(org.jboss.tools.jst.web.ui.test.InsertJSCSSPaletteEntryTest)
Time elapsed: 0.398 sec <<< FAILURE!
junit.framework.AssertionFailedError: Unexpected number of lines expected:<22> but
was:<23>
at junit.framework.Assert.fail(Assert.java:57)
at junit.framework.Assert.failNotEquals(Assert.java:329)
at junit.framework.Assert.assertEquals(Assert.java:78)
at junit.framework.Assert.assertEquals(Assert.java:234)
at junit.framework.TestCase.assertEquals(TestCase.java:401)
at
org.jboss.tools.jst.web.ui.test.InsertJSCSSPaletteEntryTest.compare(InsertJSCSSPaletteEntryTest.java:632)
at
org.jboss.tools.jst.web.ui.test.InsertJSCSSPaletteEntryTest.doTestWithMultipleParameters(InsertJSCSSPaletteEntryTest.java:686)
at
org.jboss.tools.jst.web.ui.test.InsertJSCSSPaletteEntryTest.testInsertMultiTagWithJcCssInHtmlHeadFileWithNoSelection(InsertJSCSSPaletteEntryTest.java:555)
{code}
Wrong text formating when inserting a code snippet from jQuery Mobile
palette
-----------------------------------------------------------------------------
Key: JBIDE-15194
URL:
https://issues.jboss.org/browse/JBIDE-15194
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: jsp/jsf/xml/html source editing
Affects Versions: 4.1.0.CR1
Reporter: Alexey Kazakov
Assignee: Victor Rubezhny
Fix For: 4.2.0.Alpha1
1. Create an HTML5 page:
{code}
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width,
initial-scale=1">
<link rel="stylesheet"
href="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.cs... />
<script
src="http://code.jquery.com/jquery-1.9.1.min.js"></script...
<script
src="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.js&...
</head>
<body>
<div></div>
</body>
</html>
{code}
2. DnD a page from jQuery Mobile palette between <div>...</div>.
3. FAILURE: the result is (see the last line):
{code}
...
<div>
<div data-role="page" id="page-1">
<div data-role="header">
<h1>Page Title</h1>
</div>
<div data-role="content">
<p>Page content goes here.</p>
</div>
<div data-role="footer">
<h4>Page Footer</h4>
</div>
</div></div>
...
{code}
It should be:
{code}
<div>
<div data-role="page" id="page-1">
<div data-role="header">
<h1>Page Title</h1>
</div>
<div data-role="content">
<p>Page content goes here.</p>
</div>
<div data-role="footer">
<h4>Page Footer</h4>
</div>
</div>
</div>
{code}
instead.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira