Commit 0667688c authored by Evan Simpson's avatar Evan Simpson

Add test to illustrate METAL bug

parent a852620a
<span metal:define-macro="OUTER">
AAA
<span metal:define-macro="INNER">INNER</span>
BBB
</span>
<xxx metal:use-macro="OUTER">
</xxx>
<xxx metal:use-macro="INNER">
</xxx>
<span metal:define-macro="OUTER2">
AAA
<xxx metal:define-slot="OUTERSLOT">
<span metal:define-macro="INNER2">INNER</span>
</xxx>
BBB
</span>
<xxx metal:use-macro="OUTER2">
</xxx>
<xxx metal:use-macro="INNER2">
</xxx>
<xxx metal:use-macro="OUTER2">
<yyy metal:fill-slot="OUTERSLOT">OUTERSLOT</yyy>
</xxx>
<span metal:define-macro="OUTER3">
AAA
<xxx metal:define-slot="OUTERSLOT">
<span metal:define-macro="INNER3">INNER
<xxx metal:define-slot="INNERSLOT">INNERSLOT</xxx>
</span>
</xxx>
BBB
</span>
<xxx metal:use-macro="OUTER3">
</xxx>
<xxx metal:use-macro="OUTER3">
<yyy metal:fill-slot="OUTERSLOT">OUTERSLOT</yyy>
</xxx>
<xxx metal:use-macro="INNER3">
</xxx>
<xxx metal:use-macro="INNER3">
<yyy metal:fill-slot="INNERSLOT">INNERSLOT</yyy>
</xxx>
<span metal:define-macro="OUTER">
AAA
<span metal:define-macro="INNER">INNER</span>
BBB
</span>
<span metal:use-macro="OUTER">
AAA
<span>INNER</span>
BBB
</span>
<span metal:use-macro="INNER">INNER</span>
<span metal:define-macro="OUTER2">
AAA
<xxx metal:define-slot="OUTERSLOT">
<span metal:define-macro="INNER2">INNER</span>
</xxx>
BBB
</span>
<span metal:use-macro="OUTER2">
AAA
<xxx metal:fill-slot="OUTERSLOT">
<span metal:use-macro="INNER2">INNER</span>
</xxx>
BBB
</span>
<span metal:use-macro="INNER2">INNER</span>
<span metal:use-macro="OUTER2">
AAA
<yyy metal:fill-slot="OUTERSLOT">OUTERSLOT</yyy>
BBB
</span>
<span metal:define-macro="OUTER3">
AAA
<xxx metal:define-slot="OUTERSLOT">
<span metal:define-macro="INNER3">INNER
<xxx metal:define-slot="INNERSLOT">INNERSLOT</xxx>
</span>
</xxx>
BBB
</span>
<span metal:use-macro="OUTER3">
AAA
<xxx metal:fill-slot="OUTERSLOT">
<span metal:use-macro="INNER3">INNER
<xxx metal:fill-slot="INNERSLOT">INNERSLOT</xxx>
</span>
</xxx>
BBB
</span>
<span metal:use-macro="OUTER3">
AAA
<yyy metal:fill-slot="OUTERSLOT">OUTERSLOT</yyy>
BBB
</span>
<span metal:use-macro="INNER3">INNER
<xxx metal:fill-slot="INNERSLOT">INNERSLOT</xxx>
</span>
<span metal:use-macro="INNER3">INNER
<yyy metal:fill-slot="INNERSLOT">INNERSLOT</yyy>
</span>
...@@ -18,9 +18,13 @@ class FileTestCase(unittest.TestCase): ...@@ -18,9 +18,13 @@ class FileTestCase(unittest.TestCase):
unittest.TestCase.__init__(self) unittest.TestCase.__init__(self)
def runTest(self): def runTest(self):
sys.stdout.write(os.path.basename(self.__file) + " ") basename = os.path.basename(self.__file)
sys.stdout.write(basename + " ")
sys.stdout.flush() sys.stdout.flush()
sys.argv = ["", "-Q", self.__file] if basename[:10] == 'test_metal':
sys.argv = ["", "-Q", "-m", self.__file]
else:
sys.argv = ["", "-Q", self.__file]
pwd = os.getcwd() pwd = os.getcwd()
try: try:
try: try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment