summaryrefslogtreecommitdiffstats
path: root/server/src/test/java/com/vaadin/tests/design/ParseMixedLegacyAndNewPrefixTest.java
blob: 92c37bd1004fac936bf06600e2903b5c445edaf4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 * Copyright 2000-2016 Vaadin Ltd.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package com.vaadin.tests.design;

import java.io.ByteArrayInputStream;

import org.junit.Test;

import com.vaadin.ui.declarative.Design;

/**
 * Parse mixed content with legacy and new prefixes (not a required feature but
 * works).
 */
public class ParseMixedLegacyAndNewPrefixTest {
    @Test
    public void parseMixedContent() {
        Design.read(new ByteArrayInputStream(
                "<v-vertical-layout><vaadin-label /></v-vertical-layout>"
                        .getBytes()));
    }
}
n-top="1cm" margin-bottom="2cm" margin-left="2.5cm" margin-right="2.5cm"> <fo:region-body margin-top="3cm"/> <fo:region-before extent="3cm"/> <fo:region-after extent="1.5cm"/> </fo:simple-page-master> </fo:layout-master-set> <!-- starts actual layout --> <fo:page-sequence master-reference="first"> <!-- Inserts a header with the page number --> <fo:static-content flow-name="xsl-region-before"> <fo:block text-align="end" font-size="10pt" font-family="serif" line-height="14pt"> XSL-FO Example: simple list - p. <fo:page-number/> </fo:block> </fo:static-content> <fo:flow flow-name="xsl-region-body"> <!-- title --> <fo:block font-size="14pt" font-family="sans-serif" line-height="18pt" space-before.optimum="3pt" space-after.optimum="3pt" font-weight="bold" start-indent="15pt"> Validity Constraint: Standalone Document Declaration </fo:block> <!-- normal text --> <fo:block font-size="12pt" font-family="sans-serif" line-height="15pt" space-after.optimum="3pt" > The standalone document declaration must have the value "no" if any external markup declarations contain declarations of: </fo:block> <!-- list --> <fo:list-block> <!-- list item --> <fo:list-item> <!-- insert a bullet --> <fo:list-item-label end-indent="label-end()"> <fo:block><fo:inline font-family="Symbol">&#183;</fo:inline></fo:block> </fo:list-item-label> <!-- list text --> <fo:list-item-body start-indent="body-start()"> <fo:block> attributes with default values, if elements to which these attributes apply appear in the document without specifications of values for these attributes, or </fo:block> </fo:list-item-body> </fo:list-item> <!-- list item --> <fo:list-item> <!-- insert a bullet --> <fo:list-item-label end-indent="label-end()"> <fo:block><fo:inline font-family="Symbol">&#183;</fo:inline></fo:block> </fo:list-item-label> <!-- list text --> <fo:list-item-body start-indent="body-start()"> <fo:block> entities (other than amp, lt, gt, apos, quot), if references to those entities appear in the document, or </fo:block> </fo:list-item-body> </fo:list-item> <!-- list entry --> <fo:list-item> <!-- insert a bullet --> <fo:list-item-label end-indent="label-end()"> <fo:block><fo:inline font-family="Symbol">&#183;</fo:inline></fo:block> </fo:list-item-label> <!-- list text --> <fo:list-item-body start-indent="body-start()"> <fo:block> attributes with values subject to normalization, where the attribute appears in the document with a value which will </fo:block> </fo:list-item-body> </fo:list-item> <!-- list entry --> <fo:list-item> <!-- insert a bullet --> <fo:list-item-label end-indent="label-end()"> <fo:block><fo:inline font-family="Symbol">&#183;</fo:inline></fo:block> </fo:list-item-label> <!-- list text --> <fo:list-item-body start-indent="body-start()"> <fo:block> change as a result of normalization, or </fo:block> </fo:list-item-body> </fo:list-item> <!-- list entry --> <fo:list-item> <!-- insert a bullet --> <fo:list-item-label end-indent="label-end()"> <fo:block><fo:inline font-family="Symbol">&#183;</fo:inline></fo:block> </fo:list-item-label> <!-- list text --> <fo:list-item-body start-indent="body-start()"> <fo:block> element types with element content, if white space occurs directly within any instance of those types. <fo:list-block> <fo:list-item> <fo:list-item-label end-indent="label-end()"> <fo:block><fo:inline font-family="Symbol">&#183;</fo:inline></fo:block> </fo:list-item-label> <fo:list-item-body start-indent="body-start()"> <fo:block>This is the first item of a nested list</fo:block> </fo:list-item-body> </fo:list-item> <fo:list-item> <fo:list-item-label end-indent="label-end()"> <fo:block><fo:inline font-family="Symbol">&#183;</fo:inline></fo:block> </fo:list-item-label> <fo:list-item-body start-indent="body-start()"> <fo:block>This is the second item of a nested list</fo:block> </fo:list-item-body> </fo:list-item> <fo:list-item> <fo:list-item-label end-indent="label-end()"> <fo:block><fo:inline font-family="Symbol">&#183;</fo:inline></fo:block> </fo:list-item-label> <fo:list-item-body start-indent="body-start()"> <fo:block>This is the third item of a nested list</fo:block> </fo:list-item-body> </fo:list-item> <fo:list-item> <fo:list-item-label end-indent="label-end()"> <fo:block><fo:inline font-family="Symbol">&#183;</fo:inline></fo:block> </fo:list-item-label> <fo:list-item-body start-indent="body-start()"> <fo:block>This is the fourth item of a nested list</fo:block> </fo:list-item-body> </fo:list-item> <fo:list-item> <fo:list-item-label end-indent="label-end()"> <fo:block><fo:inline font-family="Symbol">&#183;</fo:inline></fo:block> </fo:list-item-label> <fo:list-item-body start-indent="body-start()"> <fo:block>This is the fifth item of a nested list</fo:block> </fo:list-item-body> </fo:list-item> </fo:list-block> </fo:block> </fo:list-item-body> </fo:list-item> </fo:list-block> <!-- end list --> </fo:flow> </fo:page-sequence> </fo:root>