diff options
author | Szabolcs Berecz <szabolcs.berecz@gmail.com> | 2013-02-17 13:56:13 +0100 |
---|---|---|
committer | Szabolcs Berecz <szabolcs.berecz@gmail.com> | 2013-02-24 17:51:29 +0100 |
commit | 8187debb7148483d991b7fa131e0c66cdee6e646 (patch) | |
tree | e8c879e94010ac29540a592eb0c08c46a1cc7630 /test/files/run/t7074.check | |
parent | 2952d0fa020c003e919dff0eea0bc63f7d52fba8 (diff) | |
download | scala-8187debb7148483d991b7fa131e0c66cdee6e646.tar.gz scala-8187debb7148483d991b7fa131e0c66cdee6e646.tar.bz2 scala-8187debb7148483d991b7fa131e0c66cdee6e646.zip |
SI-7074 Fix xml attribute sorting
Sorting the attributes of an xml element could drop some of the
attributes. It was caused by the incorrect use of MetaData#copy() to
concatenate "smaller" with the rest of the attributes. The
MetaData#copy() method is similar to the following hypothetical method
on a List:
def copy(other: List): List = head :: other
The fix prepends all elements of "smaller" to the rest of the attributes
in the proper order.
Diffstat (limited to 'test/files/run/t7074.check')
-rw-r--r-- | test/files/run/t7074.check | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/run/t7074.check b/test/files/run/t7074.check new file mode 100644 index 0000000000..ab9cf11f16 --- /dev/null +++ b/test/files/run/t7074.check @@ -0,0 +1,9 @@ +<a/> +<a b="2" c="3" d="1"/> +<a b="2" c="4" d="1" e="3" f="5"/> +<a b="5" c="4" d="3" e="2" f="1"/> +<a b="1" c="2" d="3" e="4" f="5"/> +<a a:b="2" a:c="3" a:d="1"/> +<a a:b="2" a:c="4" a:d="1" a:e="3" a:f="5"/> +<a a:b="5" a:c="4" a:d="3" a:e="2" a:f="1"/> +<a a:b="1" a:c="2" a:d="3" a:e="4" a:f="5"/> |