More tests for syntaxhighlighter

This commit is contained in:
Thomas Ave 2016-05-30 22:38:06 +02:00
parent 75257e76fb
commit 76ad1c627a
15 changed files with 1396 additions and 1 deletions

View File

@ -50,7 +50,7 @@ REGEXES_DATA = [ # (regexes, should be accepted)
EXAMPLE_TESTS = { #Mapping from test name to executable and number of available test input files
"keywords" : ("examples/keywords/keywords", 2),
"highlighter": ("examples/SyntaxHighlighter/highlighter", 1),
"highlighter": ("examples/SyntaxHighlighter/highlighter", 8),
"leopard": ("examples/leopard/leopard", 8),
}

34
tests/highlighter_1.exp Normal file
View File

@ -0,0 +1,34 @@
<?xml version="1.0" encoding="ISO8859-1" ?>
<breakfast-menu>
<food>
<name>Belgian Waffles</name>
<price>$5.95</price>
<description>two of our famous Belgian Waffles with plenty of real maple syrup</description>
<calories>650</calories>
</food>
<food>
<name>Strawberry Belgian Waffles</name>
<price>$7.95</price>
<description>light Belgian waffles covered with strawberrys and whipped cream</description>
<calories>900</calories>
</food>
<food>
<name>Berry-Berry Belgian Waffles</name>
<price>$8.95</price>
<description>light Belgian waffles covered with an assortment of fresh berries and whipped cream</description>
<calories>900</calories>
</food>
<food>
<name>French Toast</name>
<price>$4.50</price>
<description>thick slices made from our homemade sourdough bread</description>
<calories>600</calories>
</food>
<food>
<name>Homestyle Breakfast</name>
<price>$6.95</price>
<description>two eggs, bacon or sausage, toast, and our ever-popular hash browns</description>
<calories>950</calories>
</food>
</breakfast-menu>


33
tests/highlighter_1.in Normal file
View File

@ -0,0 +1,33 @@
<?xml version="1.0" encoding="ISO8859-1" ?>
<breakfast-menu>
<food>
<name>Belgian Waffles</name>
<price>$5.95</price>
<description>two of our famous Belgian Waffles with plenty of real maple syrup</description>
<calories>650</calories>
</food>
<food>
<name>Strawberry Belgian Waffles</name>
<price>$7.95</price>
<description>light Belgian waffles covered with strawberrys and whipped cream</description>
<calories>900</calories>
</food>
<food>
<name>Berry-Berry Belgian Waffles</name>
<price>$8.95</price>
<description>light Belgian waffles covered with an assortment of fresh berries and whipped cream</description>
<calories>900</calories>
</food>
<food>
<name>French Toast</name>
<price>$4.50</price>
<description>thick slices made from our homemade sourdough bread</description>
<calories>600</calories>
</food>
<food>
<name>Homestyle Breakfast</name>
<price>$6.95</price>
<description>two eggs, bacon or sausage, toast, and our ever-popular hash browns</description>
<calories>950</calories>
</food>
</breakfast-menu>

23
tests/highlighter_2.exp Normal file
View File

@ -0,0 +1,23 @@
<?xml version="1.0" ?>
<Voertuigen>
<Brandweerwagen>
<Naam>Bw12</Naam>
<Basis>BWK1337</Basis>
</Brandweerwagen>
<Brandweerwagen>
<Naam>Bw34</Naam>
<Basis>BWK1337</Basis>
</Brandweerwagen>
<Politiewagen>
<Naam>Pw3</Naam>
<Basis>PB134</Basis>
</Politiewagen>
<Politiewagen>
<Naam>Pw4</Naam>
<Basis>PB134</Basis>
</Politiewagen>
<Ziekenwagen>
<Naam>Zw7</Naam>
<Basis>Middelheim</Basis>
</Ziekenwagen>
</Voertuigen>

23
tests/highlighter_2.in Normal file
View File

@ -0,0 +1,23 @@
<?xml version="1.0" ?>
<Voertuigen>
<Brandweerwagen>
<Naam>Bw12</Naam>
<Basis>BWK1337</Basis>
</Brandweerwagen>
<Brandweerwagen>
<Naam>Bw34</Naam>
<Basis>BWK1337</Basis>
</Brandweerwagen>
<Politiewagen>
<Naam>Pw3</Naam>
<Basis>PB134</Basis>
</Politiewagen>
<Politiewagen>
<Naam>Pw4</Naam>
<Basis>PB134</Basis>
</Politiewagen>
<Ziekenwagen>
<Naam>Zw7</Naam>
<Basis>Middelheim</Basis>
</Ziekenwagen>
</Voertuigen>

239
tests/highlighter_3.exp Normal file
View File

@ -0,0 +1,239 @@
<?xml version="1.0" ?>
<VirtueleStad>
<Brandweerkazerne>
<Naam>BWK1337</Naam>
<Locatie X="8" Y="9"/>
<Ingang X="8" Y="10"/>
<Brandbaarheid>50</Brandbaarheid>
</Brandweerkazerne>
<PolitieBureau>
<Naam>PB134</Naam>
<Locatie X="8" Y="4"/>
<Grootte Hoogte="2" Breedte="4"/>
<Ingang X="8" Y="5"/>
<Brandbaarheid>30</Brandbaarheid>
</PolitieBureau>
<Ziekenhuis>
<Naam>Middelheim</Naam>
<Locatie X="1" Y="4"/>
<Grootte Hoogte="4" Breedte="6"/>
<Ingang X="1" Y="0"/>
<Brandbaarheid>60</Brandbaarheid>
</Ziekenhuis>
<Straat>
<Naam>Pythonstraat</Naam>
<Van x="0" y="15"/>
<Naar x="21" y="15"/>
</Straat>
<Straat>
<Naam>Cstraat</Naam>
<Van x="0" y="10"/>
<Naar x="21" y="10"/>
</Straat>
<Straat>
<Naam>Haskellstraat</Naam>
<Van x="0" y="5"/>
<Naar x="21" y="5"/>
</Straat>
<Straat>
<Naam>Lispstraat</Naam>
<Van x="0" y="0"/>
<Naar x="21" y="0"/>
</Straat>
<Straat>
<Naam>Assemblystraat</Naam>
<Van x="0" y="0"/>
<Naar x="0" y="15"/>
</Straat>
<Straat>
<Naam>Javastraat</Naam>
<Van x="7" y="0"/>
<Naar x="7" y="15"/>
</Straat>
<Straat>
<Naam>Eiffelstraat</Naam>
<Van x="16" y="0"/>
<Naar x="16" y="15"/>
</Straat>
<Straat>
<Naam>Rubystraat</Naam>
<Van x="21" y="0"/>
<Naar x="21" y="15"/>
</Straat>
<Huis>
<Locatie X="1" Y="14"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="3" Y="14"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="5" Y="14"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="8" Y="14"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="10" Y="14"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="12" Y="14"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="14" Y="14"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="17" Y="14"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="19" Y="14"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="1" Y="12"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="3" Y="12"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="5" Y="12"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Winkel>
<Locatie X="8" Y="12"/>
<Grootte Hoogte="2" Breedte="4"/>
<Brandbaarheid>55</Brandbaarheid>
<Overvalbaarheid>16</Overvalbaarheid>
</Winkel>
<Huis>
<Locatie X="12" Y="12"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="14" Y="12"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="17" Y="12"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="19" Y="12"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="1" Y="9"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="3" Y="9"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="5" Y="9"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Winkel>
<Locatie X="12" Y="9"/>
<Grootte Hoogte="2" Breedte="2"/>
<Brandbaarheid>30</Brandbaarheid>
<Overvalbaarheid>15</Overvalbaarheid>
</Winkel>
<Winkel>
<Locatie X="14" Y="9"/>
<Grootte Hoogte="4" Breedte="2"/>
<Brandbaarheid>40</Brandbaarheid>
<Overvalbaarheid>30</Overvalbaarheid>
</Winkel>
<Huis>
<Locatie X="17" Y="9"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="19" Y="9"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="1" Y="7"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="3" Y="7"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="5" Y="7"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Winkel>
<Locatie X="12" Y="7"/>
<Grootte Hoogte="2" Breedte="2"/>
<Brandbaarheid>27</Brandbaarheid>
<Overvalbaarheid>9</Overvalbaarheid>
</Winkel>
<Huis>
<Locatie X="17" Y="7"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="19" Y="7"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="12" Y="4"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="14" Y="4"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="17" Y="4"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="19" Y="4"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="8" Y="2"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="10" Y="2"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="12" Y="2"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="14" Y="2"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="17" Y="2"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="19" Y="2"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
</VirtueleStad>


238
tests/highlighter_3.in Normal file
View File

@ -0,0 +1,238 @@
<?xml version="1.0" ?>
<VirtueleStad>
<Brandweerkazerne>
<Naam>BWK1337</Naam>
<Locatie X="8" Y="9"/>
<Ingang X="8" Y="10"/>
<Brandbaarheid>50</Brandbaarheid>
</Brandweerkazerne>
<PolitieBureau>
<Naam>PB134</Naam>
<Locatie X="8" Y="4"/>
<Grootte Hoogte="2" Breedte="4"/>
<Ingang X="8" Y="5"/>
<Brandbaarheid>30</Brandbaarheid>
</PolitieBureau>
<Ziekenhuis>
<Naam>Middelheim</Naam>
<Locatie X="1" Y="4"/>
<Grootte Hoogte="4" Breedte="6"/>
<Ingang X="1" Y="0"/>
<Brandbaarheid>60</Brandbaarheid>
</Ziekenhuis>
<Straat>
<Naam>Pythonstraat</Naam>
<Van x="0" y="15"/>
<Naar x="21" y="15"/>
</Straat>
<Straat>
<Naam>Cstraat</Naam>
<Van x="0" y="10"/>
<Naar x="21" y="10"/>
</Straat>
<Straat>
<Naam>Haskellstraat</Naam>
<Van x="0" y="5"/>
<Naar x="21" y="5"/>
</Straat>
<Straat>
<Naam>Lispstraat</Naam>
<Van x="0" y="0"/>
<Naar x="21" y="0"/>
</Straat>
<Straat>
<Naam>Assemblystraat</Naam>
<Van x="0" y="0"/>
<Naar x="0" y="15"/>
</Straat>
<Straat>
<Naam>Javastraat</Naam>
<Van x="7" y="0"/>
<Naar x="7" y="15"/>
</Straat>
<Straat>
<Naam>Eiffelstraat</Naam>
<Van x="16" y="0"/>
<Naar x="16" y="15"/>
</Straat>
<Straat>
<Naam>Rubystraat</Naam>
<Van x="21" y="0"/>
<Naar x="21" y="15"/>
</Straat>
<Huis>
<Locatie X="1" Y="14"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="3" Y="14"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="5" Y="14"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="8" Y="14"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="10" Y="14"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="12" Y="14"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="14" Y="14"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="17" Y="14"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="19" Y="14"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="1" Y="12"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="3" Y="12"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="5" Y="12"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Winkel>
<Locatie X="8" Y="12"/>
<Grootte Hoogte="2" Breedte="4"/>
<Brandbaarheid>55</Brandbaarheid>
<Overvalbaarheid>16</Overvalbaarheid>
</Winkel>
<Huis>
<Locatie X="12" Y="12"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="14" Y="12"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="17" Y="12"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="19" Y="12"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="1" Y="9"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="3" Y="9"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="5" Y="9"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Winkel>
<Locatie X="12" Y="9"/>
<Grootte Hoogte="2" Breedte="2"/>
<Brandbaarheid>30</Brandbaarheid>
<Overvalbaarheid>15</Overvalbaarheid>
</Winkel>
<Winkel>
<Locatie X="14" Y="9"/>
<Grootte Hoogte="4" Breedte="2"/>
<Brandbaarheid>40</Brandbaarheid>
<Overvalbaarheid>30</Overvalbaarheid>
</Winkel>
<Huis>
<Locatie X="17" Y="9"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="19" Y="9"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="1" Y="7"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="3" Y="7"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="5" Y="7"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Winkel>
<Locatie X="12" Y="7"/>
<Grootte Hoogte="2" Breedte="2"/>
<Brandbaarheid>27</Brandbaarheid>
<Overvalbaarheid>9</Overvalbaarheid>
</Winkel>
<Huis>
<Locatie X="17" Y="7"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="19" Y="7"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="12" Y="4"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="14" Y="4"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="17" Y="4"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="19" Y="4"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="8" Y="2"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="10" Y="2"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="12" Y="2"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="14" Y="2"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="17" Y="2"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
<Huis>
<Locatie X="19" Y="2"/>
<Brandbaarheid>20</Brandbaarheid>
</Huis>
</VirtueleStad>

40
tests/highlighter_4.exp Normal file
View File

@ -0,0 +1,40 @@
<?xml version="1.0" ?>
<DFA>
<Alphabet>
<symbol>0</symbol>
<symbol>1</symbol>
</Alphabet>
<States>
<state>
<name>Q0</name>
<starting>yes</starting>
</state>
<state>
<name>Q1</name>
<accepting>yes</accepting>
</state>
</States>
<Transitions>
<transition>
<from>Q0</from>
<to>Q0</to>
<input>0</input>
</transition>
<transition>
<from>Q0</from>
<to>Q1</to>
<input>1</input>
</transition>
<transition>
<from>Q1</from>
<to>Q1</to>
<input>0</input>
</transition>
<transition>
<from>Q1</from>
<to>Q0</to>
<input>1</input>
</transition>
</Transitions>
</DFA>


39
tests/highlighter_4.in Normal file
View File

@ -0,0 +1,39 @@
<?xml version="1.0" ?>
<DFA>
<Alphabet>
<symbol>0</symbol>
<symbol>1</symbol>
</Alphabet>
<States>
<state>
<name>Q0</name>
<starting>yes</starting>
</state>
<state>
<name>Q1</name>
<accepting>yes</accepting>
</state>
</States>
<Transitions>
<transition>
<from>Q0</from>
<to>Q0</to>
<input>0</input>
</transition>
<transition>
<from>Q0</from>
<to>Q1</to>
<input>1</input>
</transition>
<transition>
<from>Q1</from>
<to>Q1</to>
<input>0</input>
</transition>
<transition>
<from>Q1</from>
<to>Q0</to>
<input>1</input>
</transition>
</Transitions>
</DFA>

63
tests/highlighter_5.exp Normal file
View File

@ -0,0 +1,63 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
 package="thomasave.notes">
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<!-- Include required permissions for Google Mobile Ads to run-->
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<application
 android:name=".AnalyticsApplication"
 android:allowBackup="true"
 android:icon="@drawable/ic_launcher"
 android:label="@string/app_name"
 android:theme="@style/AppTheme" >
<meta-data android:name="com.google.android.gms.version"
 android:value="@integer/google_play_services_version" />
<activity
 android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
 android:windowSoftInputMode="adjustPan"
 android:launchMode="singleTop"
 android:name=".MainActivity"
 android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
 android:name="about"
 android:label="@string/app_name" >
</activity>
<activity
 android:name="settings"
 android:label="Settings" >
</activity>
<activity
 android:name=".SetAlarm"
 android:theme="@android:style/Theme.NoDisplay"
 android:label="" >
</activity>
<!--Include the AdActivity configChanges and theme. -->
<activity android:name="com.google.android.gms.ads.AdActivity"
 android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
 android:theme="@android:style/Theme.Translucent" />
<receiver
 android:name=".AlarmReceiver"
 android:exported="true" >
<intent-filter>
<action android:name="android.intent.action.NOTIFY" />
</intent-filter>
</receiver>
<receiver
 android:name=".RebootReceiver"
 android:exported="true" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
</application>
</manifest>


62
tests/highlighter_5.in Normal file
View File

@ -0,0 +1,62 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="thomasave.notes">
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<!-- Include required permissions for Google Mobile Ads to run-->
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<application
android:name=".AnalyticsApplication"
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
<activity
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
android:windowSoftInputMode="adjustPan"
android:launchMode="singleTop"
android:name=".MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="about"
android:label="@string/app_name" >
</activity>
<activity
android:name="settings"
android:label="Settings" >
</activity>
<activity
android:name=".SetAlarm"
android:theme="@android:style/Theme.NoDisplay"
android:label="" >
</activity>
<!--Include the AdActivity configChanges and theme. -->
<activity android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
android:theme="@android:style/Theme.Translucent" />
<receiver
android:name=".AlarmReceiver"
android:exported="true" >
<intent-filter>
<action android:name="android.intent.action.NOTIFY" />
</intent-filter>
</receiver>
<receiver
android:name=".RebootReceiver"
android:exported="true" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
</application>
</manifest>

143
tests/highlighter_6.exp Normal file
View File

@ -0,0 +1,143 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="White">#FFFFFF</color>
<color name="Ivory">#FFFFF0</color>
<color name="LightYellow">#FFFFE0</color>
<color name="Yellow">#FFFF00</color>
<color name="Snow">#FFFAFA</color>
<color name="FloralWhite">#FFFAF0</color>
<color name="LemonChiffon">#FFFACD</color>
<color name="Cornsilk">#FFF8DC</color>
<color name="Seashell">#FFF5EE</color>
<color name="LavenderBlush">#FFF0F5</color>
<color name="PapayaWhip">#FFEFD5</color>
<color name="BlanchedAlmond">#FFEBCD</color>
<color name="MistyRose">#FFE4E1</color>
<color name="Bisque">#FFE4C4</color>
<color name="Moccasin">#FFE4B5</color>
<color name="NavajoWhite">#FFDEAD</color>
<color name="PeachPuff">#FFDAB9</color>
<color name="Gold">#FFD700</color>
<color name="Pink">#FFC0CB</color>
<color name="LightPink">#FFB6C1</color>
<color name="Orange">#FFA500</color>
<color name="LightSalmon">#FFA07A</color>
<color name="DarkOrange">#FF8C00</color>
<color name="Coral">#FF7F50</color>
<color name="HotPink">#FF69B4</color>
<color name="Tomato">#FF6347</color>
<color name="OrangeRed">#FF4500</color>
<color name="DeepPink">#FF1493</color>
<color name="Fuchsia">#FF00FF</color>
<color name="Magenta">#FF00FF</color>
<color name="Red">#FF0000</color>
<color name="OldLace">#FDF5E6</color>
<color name="LightGoldenrodYellow">#FAFAD2</color>
<color name="Linen">#FAF0E6</color>
<color name="AntiqueWhite">#FAEBD7</color>
<color name="Salmon">#FA8072</color>
<color name="GhostWhite">#F8F8FF</color>
<color name="MintCream">#F5FFFA</color>
<color name="WhiteSmoke">#F5F5F5</color>
<color name="Beige">#F5F5DC</color>
<color name="Wheat">#F5DEB3</color>
<color name="SandyBrown">#F4A460</color>
<color name="Azure">#F0FFFF</color>
<color name="Honeydew">#F0FFF0</color>
<color name="AliceBlue">#F0F8FF</color>
<color name="Khaki">#F0E68C</color>
<color name="LightCoral">#F08080</color>
<color name="PaleGoldenrod">#EEE8AA</color>
<color name="Violet">#EE82EE</color>
<color name="DarkSalmon">#E9967A</color>
<color name="Lavender">#E6E6FA</color>
<color name="LightCyan">#E0FFFF</color>
<color name="BurlyWood">#DEB887</color>
<color name="Plum">#DDA0DD</color>
<color name="Gainsboro">#DCDCDC</color>
<color name="Crimson">#DC143C</color>
<color name="PaleVioletRed">#DB7093</color>
<color name="Goldenrod">#DAA520</color>
<color name="Orchid">#DA70D6</color>
<color name="Thistle">#D8BFD8</color>
<color name="LightGrey">#D3D3D3</color>
<color name="Tan">#D2B48C</color>
<color name="Chocolate">#D2691E</color>
<color name="Peru">#CD853F</color>
<color name="IndianRed">#CD5C5C</color>
<color name="MediumVioletRed">#C71585</color>
<color name="Silver">#C0C0C0</color>
<color name="DarkKhaki">#BDB76B</color>
<color name="RosyBrown">#BC8F8F</color>
<color name="MediumOrchid">#BA55D3</color>
<color name="DarkGoldenrod">#B8860B</color>
<color name="FireBrick">#B22222</color>
<color name="PowderBlue">#B0E0E6</color>
<color name="LightSteelBlue">#B0C4DE</color>
<color name="PaleTurquoise">#AFEEEE</color>
<color name="GreenYellow">#ADFF2F</color>
<color name="LightBlue">#ADD8E6</color>
<color name="DarkGray">#A9A9A9</color>
<color name="Brown">#A52A2A</color>
<color name="Sienna">#A0522D</color>
<color name="YellowGreen">#9ACD32</color>
<color name="DarkOrchid">#9932CC</color>
<color name="PaleGreen">#98FB98</color>
<color name="DarkViolet">#9400D3</color>
<color name="MediumPurple">#9370DB</color>
<color name="LightGreen">#90EE90</color>
<color name="DarkSeaGreen">#8FBC8F</color>
<color name="SaddleBrown">#8B4513</color>
<color name="DarkMagenta">#8B008B</color>
<color name="DarkRed">#8B0000</color>
<color name="BlueViolet">#8A2BE2</color>
<color name="LightSkyBlue">#87CEFA</color>
<color name="SkyBlue">#87CEEB</color>
<color name="Gray">#808080</color>
<color name="Olive">#808000</color>
<color name="Purple">#800080</color>
<color name="Maroon">#800000</color>
<color name="Aquamarine">#7FFFD4</color>
<color name="Chartreuse">#7FFF00</color>
<color name="LawnGreen">#7CFC00</color>
<color name="MediumSlateBlue">#7B68EE</color>
<color name="LightSlateGray">#778899</color>
<color name="SlateGray">#708090</color>
<color name="OliveDrab">#6B8E23</color>
<color name="SlateBlue">#6A5ACD</color>
<color name="DimGray">#696969</color>
<color name="MediumAquamarine">#66CDAA</color>
<color name="CornflowerBlue">#6495ED</color>
<color name="CadetBlue">#5F9EA0</color>
<color name="DarkOliveGreen">#556B2F</color>
<color name="Indigo">#4B0082</color>
<color name="MediumTurquoise">#48D1CC</color>
<color name="DarkSlateBlue">#483D8B</color>
<color name="SteelBlue">#4682B4</color>
<color name="RoyalBlue">#4169E1</color>
<color name="Turquoise">#40E0D0</color>
<color name="MediumSeaGreen">#3CB371</color>
<color name="LimeGreen">#32CD32</color>
<color name="DarkSlateGray">#2F4F4F</color>
<color name="SeaGreen">#2E8B57</color>
<color name="ForestGreen">#228B22</color>
<color name="LightSeaGreen">#20B2AA</color>
<color name="DodgerBlue">#1E90FF</color>
<color name="MidnightBlue">#191970</color>
<color name="Aqua">#00FFFF</color>
<color name="Cyan">#00FFFF</color>
<color name="SpringGreen">#00FF7F</color>
<color name="Lime">#00FF00</color>
<color name="MediumSpringGreen">#00FA9A</color>
<color name="DarkTurquoise">#00CED1</color>
<color name="DeepSkyBlue">#00BFFF</color>
<color name="DarkCyan">#008B8B</color>
<color name="Teal">#008080</color>
<color name="Green">#008000</color>
<color name="DarkGreen">#006400</color>
<color name="Blue">#0000FF</color>
<color name="MediumBlue">#0000CD</color>
<color name="DarkBlue">#00008B</color>
<color name="Navy">#000080</color>
<color name="Black">#000000</color>
</resources>

143
tests/highlighter_6.in Normal file
View File

@ -0,0 +1,143 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="White">#FFFFFF</color>
<color name="Ivory">#FFFFF0</color>
<color name="LightYellow">#FFFFE0</color>
<color name="Yellow">#FFFF00</color>
<color name="Snow">#FFFAFA</color>
<color name="FloralWhite">#FFFAF0</color>
<color name="LemonChiffon">#FFFACD</color>
<color name="Cornsilk">#FFF8DC</color>
<color name="Seashell">#FFF5EE</color>
<color name="LavenderBlush">#FFF0F5</color>
<color name="PapayaWhip">#FFEFD5</color>
<color name="BlanchedAlmond">#FFEBCD</color>
<color name="MistyRose">#FFE4E1</color>
<color name="Bisque">#FFE4C4</color>
<color name="Moccasin">#FFE4B5</color>
<color name="NavajoWhite">#FFDEAD</color>
<color name="PeachPuff">#FFDAB9</color>
<color name="Gold">#FFD700</color>
<color name="Pink">#FFC0CB</color>
<color name="LightPink">#FFB6C1</color>
<color name="Orange">#FFA500</color>
<color name="LightSalmon">#FFA07A</color>
<color name="DarkOrange">#FF8C00</color>
<color name="Coral">#FF7F50</color>
<color name="HotPink">#FF69B4</color>
<color name="Tomato">#FF6347</color>
<color name="OrangeRed">#FF4500</color>
<color name="DeepPink">#FF1493</color>
<color name="Fuchsia">#FF00FF</color>
<color name="Magenta">#FF00FF</color>
<color name="Red">#FF0000</color>
<color name="OldLace">#FDF5E6</color>
<color name="LightGoldenrodYellow">#FAFAD2</color>
<color name="Linen">#FAF0E6</color>
<color name="AntiqueWhite">#FAEBD7</color>
<color name="Salmon">#FA8072</color>
<color name="GhostWhite">#F8F8FF</color>
<color name="MintCream">#F5FFFA</color>
<color name="WhiteSmoke">#F5F5F5</color>
<color name="Beige">#F5F5DC</color>
<color name="Wheat">#F5DEB3</color>
<color name="SandyBrown">#F4A460</color>
<color name="Azure">#F0FFFF</color>
<color name="Honeydew">#F0FFF0</color>
<color name="AliceBlue">#F0F8FF</color>
<color name="Khaki">#F0E68C</color>
<color name="LightCoral">#F08080</color>
<color name="PaleGoldenrod">#EEE8AA</color>
<color name="Violet">#EE82EE</color>
<color name="DarkSalmon">#E9967A</color>
<color name="Lavender">#E6E6FA</color>
<color name="LightCyan">#E0FFFF</color>
<color name="BurlyWood">#DEB887</color>
<color name="Plum">#DDA0DD</color>
<color name="Gainsboro">#DCDCDC</color>
<color name="Crimson">#DC143C</color>
<color name="PaleVioletRed">#DB7093</color>
<color name="Goldenrod">#DAA520</color>
<color name="Orchid">#DA70D6</color>
<color name="Thistle">#D8BFD8</color>
<color name="LightGrey">#D3D3D3</color>
<color name="Tan">#D2B48C</color>
<color name="Chocolate">#D2691E</color>
<color name="Peru">#CD853F</color>
<color name="IndianRed">#CD5C5C</color>
<color name="MediumVioletRed">#C71585</color>
<color name="Silver">#C0C0C0</color>
<color name="DarkKhaki">#BDB76B</color>
<color name="RosyBrown">#BC8F8F</color>
<color name="MediumOrchid">#BA55D3</color>
<color name="DarkGoldenrod">#B8860B</color>
<color name="FireBrick">#B22222</color>
<color name="PowderBlue">#B0E0E6</color>
<color name="LightSteelBlue">#B0C4DE</color>
<color name="PaleTurquoise">#AFEEEE</color>
<color name="GreenYellow">#ADFF2F</color>
<color name="LightBlue">#ADD8E6</color>
<color name="DarkGray">#A9A9A9</color>
<color name="Brown">#A52A2A</color>
<color name="Sienna">#A0522D</color>
<color name="YellowGreen">#9ACD32</color>
<color name="DarkOrchid">#9932CC</color>
<color name="PaleGreen">#98FB98</color>
<color name="DarkViolet">#9400D3</color>
<color name="MediumPurple">#9370DB</color>
<color name="LightGreen">#90EE90</color>
<color name="DarkSeaGreen">#8FBC8F</color>
<color name="SaddleBrown">#8B4513</color>
<color name="DarkMagenta">#8B008B</color>
<color name="DarkRed">#8B0000</color>
<color name="BlueViolet">#8A2BE2</color>
<color name="LightSkyBlue">#87CEFA</color>
<color name="SkyBlue">#87CEEB</color>
<color name="Gray">#808080</color>
<color name="Olive">#808000</color>
<color name="Purple">#800080</color>
<color name="Maroon">#800000</color>
<color name="Aquamarine">#7FFFD4</color>
<color name="Chartreuse">#7FFF00</color>
<color name="LawnGreen">#7CFC00</color>
<color name="MediumSlateBlue">#7B68EE</color>
<color name="LightSlateGray">#778899</color>
<color name="SlateGray">#708090</color>
<color name="OliveDrab">#6B8E23</color>
<color name="SlateBlue">#6A5ACD</color>
<color name="DimGray">#696969</color>
<color name="MediumAquamarine">#66CDAA</color>
<color name="CornflowerBlue">#6495ED</color>
<color name="CadetBlue">#5F9EA0</color>
<color name="DarkOliveGreen">#556B2F</color>
<color name="Indigo">#4B0082</color>
<color name="MediumTurquoise">#48D1CC</color>
<color name="DarkSlateBlue">#483D8B</color>
<color name="SteelBlue">#4682B4</color>
<color name="RoyalBlue">#4169E1</color>
<color name="Turquoise">#40E0D0</color>
<color name="MediumSeaGreen">#3CB371</color>
<color name="LimeGreen">#32CD32</color>
<color name="DarkSlateGray">#2F4F4F</color>
<color name="SeaGreen">#2E8B57</color>
<color name="ForestGreen">#228B22</color>
<color name="LightSeaGreen">#20B2AA</color>
<color name="DodgerBlue">#1E90FF</color>
<color name="MidnightBlue">#191970</color>
<color name="Aqua">#00FFFF</color>
<color name="Cyan">#00FFFF</color>
<color name="SpringGreen">#00FF7F</color>
<color name="Lime">#00FF00</color>
<color name="MediumSpringGreen">#00FA9A</color>
<color name="DarkTurquoise">#00CED1</color>
<color name="DeepSkyBlue">#00BFFF</color>
<color name="DarkCyan">#008B8B</color>
<color name="Teal">#008080</color>
<color name="Green">#008000</color>
<color name="DarkGreen">#006400</color>
<color name="Blue">#0000FF</color>
<color name="MediumBlue">#0000CD</color>
<color name="DarkBlue">#00008B</color>
<color name="Navy">#000080</color>
<color name="Black">#000000</color>
</resources>

158
tests/highlighter_7.exp Normal file
View File

@ -0,0 +1,158 @@
<mediawiki xmlns="http://www.mediawiki.org/xml/export-0.8/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mediawiki.org/xml/export-0.8/ http://www.mediawiki.org/xml/export-0.8.xsd" version="0.8" xml:lang="en">
<!-- Optional global configuration info -->
<siteinfo>
<!-- Site name, as set in $wgSitename -->
<sitename>DemoWiki</sitename>
<!-- Forgot where you got this set? -->
<base>http://example.com/wiki/Main_Page</base>
<!-- Source software version -->
<generator>MediaWiki 1.20</generator>
<!-- Title case sensitivity options of the wiki this data came from -->
<!-- May be 'first-letter', 'case-sensitive', or 'case-insensitive' -->
<case>first-letter</case>
<!-- Defined namespace keys on the source wiki. -->
<namespaces>
<namespace key="-2" case="first-letter">Media</namespace>
<namespace key="-1" case="first-letter">Special</namespace>
<namespace key="0" case="first-letter" />
<namespace key="1" case="first-letter">Talk</namespace>
<namespace key="2" case="first-letter">User</namespace>
<namespace key="3" case="first-letter">User talk</namespace>
<namespace key="4" case="first-letter">DemoWiki</namespace>
<namespace key="5" case="first-letter">DemoWIki talk</namespace>
<namespace key="6" case="first-letter">File</namespace>
<namespace key="7" case="first-letter">File talk</namespace>
<namespace key="8" case="first-letter">MediaWiki</namespace>
<namespace key="9" case="first-letter">MediaWiki talk</namespace>
<namespace key="10" case="first-letter">Template</namespace>
<namespace key="11" case="first-letter">Template talk</namespace>
<namespace key="12" case="first-letter">Help</namespace>
<namespace key="13" case="first-letter">Help talk</namespace>
<namespace key="14" case="first-letter">Category</namespace>
<namespace key="15" case="first-letter">Category talk</namespace>
</namespaces>
</siteinfo>
<!-- The rest of the data will be a series of page records -->
<page>
<!-- Titles are listed here in text form, with namespace prefix -->
<!-- if any, and spaces rather than the underscores used in URLs. -->
<title>Page title</title>
<!-- Namespace in canonical form -->
<ns>0</ns>
<!-- The page's immutable page_id number in the source database. -->
<!-- Page ID numbers are kept across page moves, but may change -->
<!-- if a page is deleted and recreated. -->
<id>1</id>
<!-- Tag wether this article is a redirect and its target -->
<!-- This corresponds to the page_is_redirect in the page table -->
<redirect title="Target" />
<!-- If restricted, the ACL is listed here raw. -->
<restrictions>edit=sysop:move=sysop</restrictions>
<!-- With a series of revision records... -->
<!-- Remember this is XML; if you must use a regex-based extractor -->
<!-- in place of a standard XML parser, be very careful. -->
<!-- * Don't forget to decode character entities! -->
<!-- * If using a 'loose' XML parser, ensure that whitespace is -->
<!-- preserved in the <text> elements. -->
<revision>
<!-- Unique revision ID number (rev_id) in the source database. -->
<!-- This number uniquely identifies the revision on that wiki. -->
<id>100</id>
<!-- revision id of the parent revision -->
<parentid>99</parentid>
<timestamp>2001-01-15T13:15:00Z</timestamp>
<contributor>
<username>Foobar</username>
<id>42</id>
</contributor>
<minor />
<comment>I have just one thing to say!</comment>
<text xml:space="preserve" bytes="25">A bunch of [[text]] here.</text>
<sha1>5x0ux8iwjrbmfzgv6pkketxgkcnpr7h</sha1>
<model>wikitext</model>
<format>text/x-wiki</format>
</revision>
<revision>
<id>99</id>
<timestamp>2001-01-15T13:10:27Z</timestamp>
<contributor>
<ip>10.0.0.2</ip>
</contributor>
<comment>new!</comment>
<text xml:space="preserve" bytes="24">An earlier [[revision]].</text>
<sha1>etaxt3shcge6igz1biwy3d4um2pnle4</sha1>
<model>wikitext</model>
<format>text/x-wiki</format>
</revision>
</page>
<page>
<title>Talk:Page title</title>
<ns>1</ns>
<id>2</id>
<revision>
<id>101</id>
<timestamp>2001-01-15T14:03:00Z</timestamp>
<contributor><ip>10.0.0.2</ip></contributor>
<comment>hey</comment>
<text xml:space="preserve" bytes="47">WHYD YOU LOCK PAGE??!!! i was editing that jerk</text>
<sha1>ml80vmyjlixdstnywwihx003exfzq9j</sha1>
<model>wikitext</model>
<format>text/x-wiki</format>
</revision>
</page>
<page>
<title>File:Some image.jpg</title>
<ns>6</ns>
<id>3</id>
<revision>
<id>102</id>
<timestamp>2001-01-15T20:34:12Z</timestamp>
<contributor><username>Foobar</username><id>42</id></contributor>
<comment>My awesomeest image!</comment>
<text xml:space="preserve" bytes="52">This is an awesome little imgae. I lurves it. {{PD}}</text>
<sha1>mehom37npwkpzhaiwu3wyr0egalumki</sha1>
<model>wikitext</model>
<format>text/x-wiki</format>
</revision>
<upload>
<timestamp>2001-01-15T20:34:12Z</timestamp>
<contributor><username>Foobar</username><id>42</id></contributor>
<comment>My awesomeest image!</comment>
<filename>Some_image.jpg</filename>
<src>http://upload.wikimedia.org/commons/2/22/Some_image.jpg</src>
<size>12345</size>
</upload>
</page>
<!-- or a series of logitem records, but normaly page and logitem never exist both in one file -->
<logitem>
<id>15</id>
<timestamp>2008-10-23T03:20:32Z</timestamp>
<contributor>
<username>Wikimedian</username>
<id>12345</id>
</contributor>
<comment>content was: 'I think this was a silly edit'</comment>
<type>delete</type>
<action>delete</action>
<logtitle>Silly page name</logtitle>
<params xml:space="preserve" />
</logitem>
</mediawiki>


157
tests/highlighter_7.in Normal file
View File

@ -0,0 +1,157 @@
<mediawiki xmlns="http://www.mediawiki.org/xml/export-0.8/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mediawiki.org/xml/export-0.8/ http://www.mediawiki.org/xml/export-0.8.xsd" version="0.8" xml:lang="en">
<!-- Optional global configuration info -->
<siteinfo>
<!-- Site name, as set in $wgSitename -->
<sitename>DemoWiki</sitename>
<!-- Forgot where you got this set? -->
<base>http://example.com/wiki/Main_Page</base>
<!-- Source software version -->
<generator>MediaWiki 1.20</generator>
<!-- Title case sensitivity options of the wiki this data came from -->
<!-- May be 'first-letter', 'case-sensitive', or 'case-insensitive' -->
<case>first-letter</case>
<!-- Defined namespace keys on the source wiki. -->
<namespaces>
<namespace key="-2" case="first-letter">Media</namespace>
<namespace key="-1" case="first-letter">Special</namespace>
<namespace key="0" case="first-letter" />
<namespace key="1" case="first-letter">Talk</namespace>
<namespace key="2" case="first-letter">User</namespace>
<namespace key="3" case="first-letter">User talk</namespace>
<namespace key="4" case="first-letter">DemoWiki</namespace>
<namespace key="5" case="first-letter">DemoWIki talk</namespace>
<namespace key="6" case="first-letter">File</namespace>
<namespace key="7" case="first-letter">File talk</namespace>
<namespace key="8" case="first-letter">MediaWiki</namespace>
<namespace key="9" case="first-letter">MediaWiki talk</namespace>
<namespace key="10" case="first-letter">Template</namespace>
<namespace key="11" case="first-letter">Template talk</namespace>
<namespace key="12" case="first-letter">Help</namespace>
<namespace key="13" case="first-letter">Help talk</namespace>
<namespace key="14" case="first-letter">Category</namespace>
<namespace key="15" case="first-letter">Category talk</namespace>
</namespaces>
</siteinfo>
<!-- The rest of the data will be a series of page records -->
<page>
<!-- Titles are listed here in text form, with namespace prefix -->
<!-- if any, and spaces rather than the underscores used in URLs. -->
<title>Page title</title>
<!-- Namespace in canonical form -->
<ns>0</ns>
<!-- The page's immutable page_id number in the source database. -->
<!-- Page ID numbers are kept across page moves, but may change -->
<!-- if a page is deleted and recreated. -->
<id>1</id>
<!-- Tag wether this article is a redirect and its target -->
<!-- This corresponds to the page_is_redirect in the page table -->
<redirect title="Target" />
<!-- If restricted, the ACL is listed here raw. -->
<restrictions>edit=sysop:move=sysop</restrictions>
<!-- With a series of revision records... -->
<!-- Remember this is XML; if you must use a regex-based extractor -->
<!-- in place of a standard XML parser, be very careful. -->
<!-- * Don't forget to decode character entities! -->
<!-- * If using a 'loose' XML parser, ensure that whitespace is -->
<!-- preserved in the <text> elements. -->
<revision>
<!-- Unique revision ID number (rev_id) in the source database. -->
<!-- This number uniquely identifies the revision on that wiki. -->
<id>100</id>
<!-- revision id of the parent revision -->
<parentid>99</parentid>
<timestamp>2001-01-15T13:15:00Z</timestamp>
<contributor>
<username>Foobar</username>
<id>42</id>
</contributor>
<minor />
<comment>I have just one thing to say!</comment>
<text xml:space="preserve" bytes="25">A bunch of [[text]] here.</text>
<sha1>5x0ux8iwjrbmfzgv6pkketxgkcnpr7h</sha1>
<model>wikitext</model>
<format>text/x-wiki</format>
</revision>
<revision>
<id>99</id>
<timestamp>2001-01-15T13:10:27Z</timestamp>
<contributor>
<ip>10.0.0.2</ip>
</contributor>
<comment>new!</comment>
<text xml:space="preserve" bytes="24">An earlier [[revision]].</text>
<sha1>etaxt3shcge6igz1biwy3d4um2pnle4</sha1>
<model>wikitext</model>
<format>text/x-wiki</format>
</revision>
</page>
<page>
<title>Talk:Page title</title>
<ns>1</ns>
<id>2</id>
<revision>
<id>101</id>
<timestamp>2001-01-15T14:03:00Z</timestamp>
<contributor><ip>10.0.0.2</ip></contributor>
<comment>hey</comment>
<text xml:space="preserve" bytes="47">WHYD YOU LOCK PAGE??!!! i was editing that jerk</text>
<sha1>ml80vmyjlixdstnywwihx003exfzq9j</sha1>
<model>wikitext</model>
<format>text/x-wiki</format>
</revision>
</page>
<page>
<title>File:Some image.jpg</title>
<ns>6</ns>
<id>3</id>
<revision>
<id>102</id>
<timestamp>2001-01-15T20:34:12Z</timestamp>
<contributor><username>Foobar</username><id>42</id></contributor>
<comment>My awesomeest image!</comment>
<text xml:space="preserve" bytes="52">This is an awesome little imgae. I lurves it. {{PD}}</text>
<sha1>mehom37npwkpzhaiwu3wyr0egalumki</sha1>
<model>wikitext</model>
<format>text/x-wiki</format>
</revision>
<upload>
<timestamp>2001-01-15T20:34:12Z</timestamp>
<contributor><username>Foobar</username><id>42</id></contributor>
<comment>My awesomeest image!</comment>
<filename>Some_image.jpg</filename>
<src>http://upload.wikimedia.org/commons/2/22/Some_image.jpg</src>
<size>12345</size>
</upload>
</page>
<!-- or a series of logitem records, but normaly page and logitem never exist both in one file -->
<logitem>
<id>15</id>
<timestamp>2008-10-23T03:20:32Z</timestamp>
<contributor>
<username>Wikimedian</username>
<id>12345</id>
</contributor>
<comment>content was: 'I think this was a silly edit'</comment>
<type>delete</type>
<action>delete</action>
<logtitle>Silly page name</logtitle>
<params xml:space="preserve" />
</logitem>
</mediawiki>