Repository: flex-tlf
Updated Branches:
  refs/heads/FlexUnit4TestsTLF [created] cad064e08


http://git-wip-us.apache.org/repos/asf/flex-tlf/blob/cad064e0/test/testFiles/markup/tlf/severalPages.xml
----------------------------------------------------------------------
diff --git a/test/testFiles/markup/tlf/severalPages.xml 
b/test/testFiles/markup/tlf/severalPages.xml
index ddeb3f2..0de62a6 100644
--- a/test/testFiles/markup/tlf/severalPages.xml
+++ b/test/testFiles/markup/tlf/severalPages.xml
@@ -15,6 +15,6 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 -->
-  <flow:TextFlow xmlns:flow="http://ns.adobe.com/textLayout/2008"; 
fontSize="14" textIndent="15" paddingTop="4" paddingLeft="4" fontFamily="Times 
New Roman">
-    <flow:p paragraphSpaceAfter="15"><flow:span>There are many 
</flow:span><flow:span fontStyle="italic">such</flow:span><flow:span> 
lime-kilns in that tract of country, for the purpose of burning the white 
marble which composes a large part of the substance of the hills. Some of them, 
built years ago, and long deserted, with weeds growing in the vacant round of 
the interior, which is open to the sky, and grass and wild-flowers rooting 
themselves into the chinks of the stones, look already like relics of 
antiquity, and may yet be overspread with the lichens of centuries to come. 
Others, where the lime-burner still feeds his daily and nightlong fire, afford 
points of interest to the wanderer among the hills, who seats himself on a log 
of wood or a fragment of marble, to hold a chat with the solitary man. It is a 
lonesome, and, when the character is inclined to thought, may be an intensely 
thoughtful occupation; as it proved in the case of Ethan Brand, who had mused 
to such strange pu
 rpose, in days gone by, while the fire in this very kiln was burning.The man 
who now watched the fire was of a different order, and troubled himself with no 
thoughts save the very few that were requisite to his business. At frequent 
intervals, he flung back the clashing weight of the iron door, and, turning his 
face from the insufferable glare, thrust in huge logs of oak, or stirred the 
immense brands with a long pole. Within the furnace were seen the curling and 
riotous flames, and the burning marble, almost molten with the intensity of 
heat; while without, the reflection of the fire quivered on the dark intricacy 
of the surrounding forest, and showed in the foreground a bright and ruddy 
little picture of the hut, the spring beside its door, the athletic and 
coal-begrimed figure of the lime-burner, and the half-frightened child, 
shrinking into the protection of his father's shadow. And when again the iron 
door was closed, then reappeared the tender light of the half-full moon, whic
 h vainly strove to trace out the indistinct shapes of the neighboring 
mountains; and, in the upper sky, there was a flitting congregation of clouds, 
still faintly tinged with the rosy sunset, though thus far down into the valley 
the sunshine had vanished long and long ago.The man who now watched the fire 
was of a different order, and troubled himself with no thoughts save the very 
few that were requisite to his business. At frequent intervals, he flung back 
the clashing weight of the iron door, and, turning his face from the 
insufferable glare, thrust in huge logs of oak, or stirred the immense brands 
with a long pole. Within the furnace were seen the curling and riotous flames, 
and the burning marble, almost molten with the intensity of heat; while 
without, the reflection of the fire quivered on the dark intricacy of the 
surrounding forest, and showed in the foreground a bright and ruddy little 
picture of the hut, the spring beside its door, the athletic and coal-begrimed 
figure of
  the lime-burner, and the half-frightened child, shrinking into the protection 
of his father's shadow. And when again the iron door was closed, then 
reappeared the tender light of the half-full moon, which vainly strove to trace 
out the indistinct shapes of the neighboring mountains; and, in the upper sky, 
there was a flitting congregation of clouds, still faintly tinged with the rosy 
sunset, though thus far down into the valley the sunshine had vanished long and 
long ago.The man who now watched the fire was of a different order, and 
troubled himself with no thoughts save the very few that were requisite to his 
business. At frequent intervals, he flung back the clashing weight of the iron 
door, and, turning his face from the insufferable glare, thrust in huge logs of 
oak, or stirred the immense brands with a long pole. Within the furnace were 
seen the curling and riotous flames, and the burning marble, almost molten with 
the intensity of heat; while without, the reflection of the fi
 re quivered on the dark intricacy of the surrounding forest, and showed in the 
foreground a bright and ruddy little picture of the hut, the spring beside its 
door, the athletic and coal-begrimed figure of the lime-burner, and the 
half-frightened child, shrinking into the protection of his father's shadow. 
And when again the iron door was closed, then reappeared the tender light of 
the half-full moon, which vainly strove to trace out the indistinct shapes of 
the neighboring mountains; and, in the upper sky, there was a flitting 
congregation of clouds, still faintly tinged with the rosy sunset, though thus 
far down into the valley the sunshine had vanished long and long ago.The man 
who now watched the fire was of a different order, and troubled himself with no 
thoughts save the very few that were requisite to his business. At frequent 
intervals, he flung back the clashing weight of the iron door, and, turning his 
face from the insufferable glare, thrust in huge logs of oak, or stirred
  the immense brands with a long pole. Within the furnace were seen the curling 
and riotous flames, and the burning marble, almost molten with the intensity of 
heat; while without, the reflection of the fire quivered on the dark intricacy 
of the surrounding forest, and showed in the foreground a bright and ruddy 
little picture of the hut, the spring beside its door, the athletic and 
coal-begrimed figure of the lime-burner, and the half-frightened child, 
shrinking into the protection of his father's shadow. And when again the iron 
door was closed, then reappeared the tender light of the half-full moon, which 
vainly strove to trace out the indistinct shapes of the neighboring mountains; 
and, in the upper sky, there was a flitting congregation of clouds, still 
faintly tinged with the rosy sunset, though thus far down into the valley the 
sunshine had vanished long and long ago.The man who now watched the fire was of 
a different order, and troubled himself with no thoughts save the very f
 ew that were requisite to his business. At frequent intervals, he flung back 
the clashing weight of the iron door, and, turning his face from the 
insufferable glare, thrust in huge logs of oak, or stirred the immense brands 
with a long pole. Within the furnace were seen the curling and riotous flames, 
and the burning marble, almost molten with the intensity of heat; while 
without, the reflection of the fire quivered on the dark intricacy of the 
surrounding forest, and showed in the foreground a bright and ruddy little 
picture of the hut, the spring beside its door, the athletic and coal-begrimed 
figure of the lime-burner, and the half-frightened child, shrinking into the 
protection of his father's shadow. And when again the iron door was closed, 
then reappeared the tender light of the half-full moon, which vainly strove to 
trace out the indistinct shapes of the neighboring mountains; and, in the upper 
sky, there was a flitting congregation of clouds, still faintly tinged with the 
ro
 sy sunset, though thus far down into the valley the sunshine had vanished long 
and long ago.The man who now watched the fire was of a different order, and 
troubled himself with no thoughts save the very few that were requisite to his 
business. At frequent intervals, he flung back the clashing weight of the iron 
door, and, turning his face from the insufferable glare, thrust in huge logs of 
oak, or stirred the immense brands with a long pole. Within the furnace were 
seen the curling and riotous flames, and the burning marble, almost molten with 
the intensity of heat; while without, the reflection of the fire quivered on 
the dark intricacy of the surrounding forest, and showed in the foreground a 
bright and ruddy little picture of the hut, the spring beside its door, the 
athletic and coal-begrimed figure of the lime-burner, and the half-frightened 
child, shrinking into the protection of his father's shadow. And when again the 
iron door was closed, then reappeared the tender light of t
 he half-full moon, which vainly strove to trace out the indistinct shapes of 
the neighboring mountains; and, in the upper sky, there was a flitting 
congregation of clouds, still faintly tinged with the rosy sunset, though thus 
far down into the valley the sunshine had vanished long and long ago.The man 
who now watched the fire was of a different order, and troubled himself with no 
thoughts save the very few that were requisite to his business. At frequent 
intervals, he flung back the clashing weight of the iron door, and, turning his 
face from the insufferable glare, thrust in huge logs of oak, or stirred the 
immense brands with a long pole. Within the furnace were seen the curling and 
riotous flames, and the burning marble, almost molten with the intensity of 
heat; while without, the reflection of the fire quivered on the dark intricacy 
of the surrounding forest, and showed in the foreground a bright and ruddy 
little picture of the hut, the spring beside its door, the athletic and 
 coal-begrimed figure of the lime-burner, and the half-frightened child, 
shrinking into the protection of his father's shadow. And when again the iron 
door was closed, then reappeared the tender light of the half-full moon, which 
vainly strove to trace out the indistinct shapes of the neighboring mountains; 
and, in the upper sky, there was a flitting congregation of clouds, still 
faintly tinged with the rosy sunset, though thus far down into the valley the 
sunshine had vanished long and long ago.The man who now watched the fire was of 
a different order, and troubled himself with no thoughts save the very few that 
were requisite to his business. At frequent intervals, he flung back the 
clashing weight of the iron door, and, turning his face from the insufferable 
glare, thrust in huge logs of oak, or stirred the immense brands with a long 
pole. Within the furnace were seen the curling and riotous flames, and the 
burning marble, almost molten with the intensity of heat; while without, t
 he reflection of the fire quivered on the dark intricacy of the surrounding 
forest, and showed in the foreground a bright and ruddy little picture of the 
hut, the spring beside its door, the athletic and coal-begrimed figure of the 
lime-burner, and the half-frightened child, shrinking into the protection of 
his father's shadow. And when again the iron door was closed, then reappeared 
the tender light of the half-full moon, which vainly strove to trace out the 
indistinct shapes of the neighboring mountains; and, in the upper sky, there 
was a flitting congregation of clouds, still faintly tinged with the rosy 
sunset, though thus far down into the valley the sunshine had vanished long and 
long ago.</flow:span></flow:p>
-</flow:TextFlow>
\ No newline at end of file
+  <TextFlow xmlns:flow="http://ns.adobe.com/textLayout/2008"; fontSize="14" 
textIndent="15" paddingTop="4" paddingLeft="4" fontFamily="Times New Roman">
+    <p paragraphSpaceAfter="15"><span>There are many </span><span 
fontStyle="italic">such</span><span> lime-kilns in that tract of country, for 
the purpose of burning the white marble which composes a large part of the 
substance of the hills. Some of them, built years ago, and long deserted, with 
weeds growing in the vacant round of the interior, which is open to the sky, 
and grass and wild-flowers rooting themselves into the chinks of the stones, 
look already like relics of antiquity, and may yet be overspread with the 
lichens of centuries to come. Others, where the lime-burner still feeds his 
daily and nightlong fire, afford points of interest to the wanderer among the 
hills, who seats himself on a log of wood or a fragment of marble, to hold a 
chat with the solitary man. It is a lonesome, and, when the character is 
inclined to thought, may be an intensely thoughtful occupation; as it proved in 
the case of Ethan Brand, who had mused to such strange purpose, in days gone 
by, while 
 the fire in this very kiln was burning.The man who now watched the fire was of 
a different order, and troubled himself with no thoughts save the very few that 
were requisite to his business. At frequent intervals, he flung back the 
clashing weight of the iron door, and, turning his face from the insufferable 
glare, thrust in huge logs of oak, or stirred the immense brands with a long 
pole. Within the furnace were seen the curling and riotous flames, and the 
burning marble, almost molten with the intensity of heat; while without, the 
reflection of the fire quivered on the dark intricacy of the surrounding 
forest, and showed in the foreground a bright and ruddy little picture of the 
hut, the spring beside its door, the athletic and coal-begrimed figure of the 
lime-burner, and the half-frightened child, shrinking into the protection of 
his father's shadow. And when again the iron door was closed, then reappeared 
the tender light of the half-full moon, which vainly strove to trace out t
 he indistinct shapes of the neighboring mountains; and, in the upper sky, 
there was a flitting congregation of clouds, still faintly tinged with the rosy 
sunset, though thus far down into the valley the sunshine had vanished long and 
long ago.The man who now watched the fire was of a different order, and 
troubled himself with no thoughts save the very few that were requisite to his 
business. At frequent intervals, he flung back the clashing weight of the iron 
door, and, turning his face from the insufferable glare, thrust in huge logs of 
oak, or stirred the immense brands with a long pole. Within the furnace were 
seen the curling and riotous flames, and the burning marble, almost molten with 
the intensity of heat; while without, the reflection of the fire quivered on 
the dark intricacy of the surrounding forest, and showed in the foreground a 
bright and ruddy little picture of the hut, the spring beside its door, the 
athletic and coal-begrimed figure of the lime-burner, and the half
 -frightened child, shrinking into the protection of his father's shadow. And 
when again the iron door was closed, then reappeared the tender light of the 
half-full moon, which vainly strove to trace out the indistinct shapes of the 
neighboring mountains; and, in the upper sky, there was a flitting congregation 
of clouds, still faintly tinged with the rosy sunset, though thus far down into 
the valley the sunshine had vanished long and long ago.The man who now watched 
the fire was of a different order, and troubled himself with no thoughts save 
the very few that were requisite to his business. At frequent intervals, he 
flung back the clashing weight of the iron door, and, turning his face from the 
insufferable glare, thrust in huge logs of oak, or stirred the immense brands 
with a long pole. Within the furnace were seen the curling and riotous flames, 
and the burning marble, almost molten with the intensity of heat; while 
without, the reflection of the fire quivered on the dark intric
 acy of the surrounding forest, and showed in the foreground a bright and ruddy 
little picture of the hut, the spring beside its door, the athletic and 
coal-begrimed figure of the lime-burner, and the half-frightened child, 
shrinking into the protection of his father's shadow. And when again the iron 
door was closed, then reappeared the tender light of the half-full moon, which 
vainly strove to trace out the indistinct shapes of the neighboring mountains; 
and, in the upper sky, there was a flitting congregation of clouds, still 
faintly tinged with the rosy sunset, though thus far down into the valley the 
sunshine had vanished long and long ago.The man who now watched the fire was of 
a different order, and troubled himself with no thoughts save the very few that 
were requisite to his business. At frequent intervals, he flung back the 
clashing weight of the iron door, and, turning his face from the insufferable 
glare, thrust in huge logs of oak, or stirred the immense brands with a lon
 g pole. Within the furnace were seen the curling and riotous flames, and the 
burning marble, almost molten with the intensity of heat; while without, the 
reflection of the fire quivered on the dark intricacy of the surrounding 
forest, and showed in the foreground a bright and ruddy little picture of the 
hut, the spring beside its door, the athletic and coal-begrimed figure of the 
lime-burner, and the half-frightened child, shrinking into the protection of 
his father's shadow. And when again the iron door was closed, then reappeared 
the tender light of the half-full moon, which vainly strove to trace out the 
indistinct shapes of the neighboring mountains; and, in the upper sky, there 
was a flitting congregation of clouds, still faintly tinged with the rosy 
sunset, though thus far down into the valley the sunshine had vanished long and 
long ago.The man who now watched the fire was of a different order, and 
troubled himself with no thoughts save the very few that were requisite to his 
 business. At frequent intervals, he flung back the clashing weight of the iron 
door, and, turning his face from the insufferable glare, thrust in huge logs of 
oak, or stirred the immense brands with a long pole. Within the furnace were 
seen the curling and riotous flames, and the burning marble, almost molten with 
the intensity of heat; while without, the reflection of the fire quivered on 
the dark intricacy of the surrounding forest, and showed in the foreground a 
bright and ruddy little picture of the hut, the spring beside its door, the 
athletic and coal-begrimed figure of the lime-burner, and the half-frightened 
child, shrinking into the protection of his father's shadow. And when again the 
iron door was closed, then reappeared the tender light of the half-full moon, 
which vainly strove to trace out the indistinct shapes of the neighboring 
mountains; and, in the upper sky, there was a flitting congregation of clouds, 
still faintly tinged with the rosy sunset, though thus far dow
 n into the valley the sunshine had vanished long and long ago.The man who now 
watched the fire was of a different order, and troubled himself with no 
thoughts save the very few that were requisite to his business. At frequent 
intervals, he flung back the clashing weight of the iron door, and, turning his 
face from the insufferable glare, thrust in huge logs of oak, or stirred the 
immense brands with a long pole. Within the furnace were seen the curling and 
riotous flames, and the burning marble, almost molten with the intensity of 
heat; while without, the reflection of the fire quivered on the dark intricacy 
of the surrounding forest, and showed in the foreground a bright and ruddy 
little picture of the hut, the spring beside its door, the athletic and 
coal-begrimed figure of the lime-burner, and the half-frightened child, 
shrinking into the protection of his father's shadow. And when again the iron 
door was closed, then reappeared the tender light of the half-full moon, which 
vainl
 y strove to trace out the indistinct shapes of the neighboring mountains; and, 
in the upper sky, there was a flitting congregation of clouds, still faintly 
tinged with the rosy sunset, though thus far down into the valley the sunshine 
had vanished long and long ago.The man who now watched the fire was of a 
different order, and troubled himself with no thoughts save the very few that 
were requisite to his business. At frequent intervals, he flung back the 
clashing weight of the iron door, and, turning his face from the insufferable 
glare, thrust in huge logs of oak, or stirred the immense brands with a long 
pole. Within the furnace were seen the curling and riotous flames, and the 
burning marble, almost molten with the intensity of heat; while without, the 
reflection of the fire quivered on the dark intricacy of the surrounding 
forest, and showed in the foreground a bright and ruddy little picture of the 
hut, the spring beside its door, the athletic and coal-begrimed figure of the li
 me-burner, and the half-frightened child, shrinking into the protection of his 
father's shadow. And when again the iron door was closed, then reappeared the 
tender light of the half-full moon, which vainly strove to trace out the 
indistinct shapes of the neighboring mountains; and, in the upper sky, there 
was a flitting congregation of clouds, still faintly tinged with the rosy 
sunset, though thus far down into the valley the sunshine had vanished long and 
long ago.The man who now watched the fire was of a different order, and 
troubled himself with no thoughts save the very few that were requisite to his 
business. At frequent intervals, he flung back the clashing weight of the iron 
door, and, turning his face from the insufferable glare, thrust in huge logs of 
oak, or stirred the immense brands with a long pole. Within the furnace were 
seen the curling and riotous flames, and the burning marble, almost molten with 
the intensity of heat; while without, the reflection of the fire quiv
 ered on the dark intricacy of the surrounding forest, and showed in the 
foreground a bright and ruddy little picture of the hut, the spring beside its 
door, the athletic and coal-begrimed figure of the lime-burner, and the 
half-frightened child, shrinking into the protection of his father's shadow. 
And when again the iron door was closed, then reappeared the tender light of 
the half-full moon, which vainly strove to trace out the indistinct shapes of 
the neighboring mountains; and, in the upper sky, there was a flitting 
congregation of clouds, still faintly tinged with the rosy sunset, though thus 
far down into the valley the sunshine had vanished long and long ago.</span></p>
+</TextFlow>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-tlf/blob/cad064e0/testApps/src/Flow.mxml
----------------------------------------------------------------------
diff --git a/testApps/src/Flow.mxml b/testApps/src/Flow.mxml
index 44e880d..736d768 100644
--- a/testApps/src/Flow.mxml
+++ b/testApps/src/Flow.mxml
@@ -22,7 +22,6 @@
     xmlns="http://ns.adobe.com/mxml/2009";
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/mx"
-       xmlns:flow="library://ns.adobe.com/flashx/textLayout"
        xmlns:textEditBar="textEditBar.*"
        xmlns:txui="flashx.textLayout.ui.*"
        xmlns:txrulers="flashx.textLayout.ui.rulers.*"
@@ -37,8 +36,6 @@
                import flashx.textLayout.TextLayoutVersion;
                import flashx.textLayout.compose.StandardFlowComposer;
                import flashx.textLayout.container.ContainerController;
-               import flashx.textLayout.debug.Debugging;
-               import flashx.textLayout.debug.assert;
                import flashx.textLayout.edit.EditManager;
                import flashx.textLayout.edit.EditingMode;
                import flashx.textLayout.edit.ElementRange;
@@ -69,24 +66,11 @@
                use namespace tlf_internal;
                
                import mx.containers.Panel;
-               import mx.core.UIComponent;
                import mx.events.IndexChangedEvent;
                import mx.events.ScrollEvent;
                import mx.events.ScrollEventDetail;
                import mx.events.ScrollEventDirection;
-               import mx.managers.CursorManager;
                import textEditBar.MultiContainerChangeEvent;
-               import textEditBar.FeatureSetChangeEvent;
-               import textEditBar.GraphicChangeEvent;
-               import textEditBar.GraphicBar;
-               import textEditBar.LinkBar;
-               import textEditBar.LinkChangeEvent;
-               import textEditBar.MultiContainerBar;
-               import textEditBar.ScrollBar;
-               import textEditBar.SelectionColorPropsBar;
-               import textEditBar.StatusBar;
-               import textEditBar.StatusPopup;
-               import textEditBar.StyleBar;
                import textEditBar.StyleChangeEvent;
                import textEditBar.FileIOHelper;
                
@@ -138,10 +122,10 @@
        
                public function handleCreationComplete(): void
                {
-                       CONFIG::debug { 
+            /*CONFIG::debug {
                                if (this.hasOwnProperty("debugWindow"))
-                                       
Debugging.setTraceChanged(traceChanged); 
-                       }
+                                       Debugging.setTraceChanged(traceChanged);
+                       }                 */
                        
                        GlobalSettings.enableDefaultTabStops = true;
                        
@@ -152,10 +136,14 @@
                        // The next two will enable a dump of the flow 
hierarchy at various interesting times
                        // CONFIG::debug { Debugging.debugCheckTextFlow = true; 
}
                        // CONFIG::debug { Debugging.verbose = true; }
-                       
-                       CONFIG::debug { Debugging.generateDebugTrace = false; }
+            /*
+                       CONFIG::debug {
+                Debugging.generateDebugTrace = false;
+            }           */
                        // turn on containerLineValidation
-                       CONFIG::debug { Debugging.containerLineValidation = 
true; }
+               //      CONFIG::debug {
+            // Debugging.containerLineValidation = true;
+            // }
                        // turn on throw on assert 
                //      CONFIG::debug { Debugging.throwOnAssert = true; }
                                    
@@ -451,7 +439,7 @@
                                        var oldContainer:DisplayObject = 
cont.container as DisplayObject;
                                        if (oldContainer && oldContainer.parent)
                                        {
-                                               CONFIG::debug { 
assert(oldContainer.parent is Canvas,"bad container parent"); }
+                                               //CONFIG::debug { 
assert(oldContainer.parent is Canvas,"bad container parent"); }
                                                
Canvas(oldContainer.parent).rawChildren.removeChild(oldContainer);
                                        }
                                }
@@ -487,7 +475,7 @@
                
                private function damageListener(evt:DamageEvent):void
                {
-                       CONFIG::debug { assert(evt.textFlow == activeFlow,"bad 
modelChangeEvent") };
+                       //CONFIG::debug { assert(evt.textFlow == 
activeFlow,"bad modelChangeEvent") };
                }
                
                public function changeContent(newFlow:TextFlow):void

Reply via email to