Elm test: Update tests to use the new self-closing textblock tags.

SVN revision: 66027
This commit is contained in:
Tom Hacohen 2011-12-08 12:40:03 +00:00
parent 349c4a337a
commit 012af4d3d8
4 changed files with 114 additions and 114 deletions

View File

@ -38,22 +38,22 @@ static void _setup(void)
evas_object_textblock_text_markup_set evas_object_textblock_text_markup_set
(o, (o,
"This is a test of auto alignment in Evas<ps>" "This is a test of auto alignment in Evas<ps/>"
"<br>" "<br/>"
"This text should be left aligned<ps>" "This text should be left aligned<ps/>"
"\xE2\x80\x8FThis text should be right aligned<ps>" "\xE2\x80\x8FThis text should be right aligned<ps/>"
"\xE2\x80\x8FThis text should be right aligned<br>" "\xE2\x80\x8FThis text should be right aligned<br/>"
"Same as this text.<ps>" "Same as this text.<ps/>"
"This text should be left aligned<br>" "This text should be left aligned<br/>"
"\xE2\x80\x8FSame as this text." "\xE2\x80\x8FSame as this text."
"<br><br><ps>" "<br/><br/><ps/>"
"The word 'זה' should be the rightmost, 'טקסט' after, and 'בעברית' last<br>" "The word 'זה' should be the rightmost, 'טקסט' after, and 'בעברית' last<br/>"
"in the following text:<ps>" "in the following text:<ps/>"
"זה טקסט בעברית<ps>" "זה טקסט בעברית<ps/>"
"<br>" "<br/>"
"In the next text, the paragraph should be right aligned and the<br>" "In the next text, the paragraph should be right aligned and the<br/>"
"words should appear in the following order: 'דוגמה' first, 'of' second,<br>" "words should appear in the following order: 'דוגמה' first, 'of' second,<br/>"
"'טקסט' third, 'english' fourth and 'in' fifth, counting from right to left<ps>" "'טקסט' third, 'english' fourth and 'in' fifth, counting from right to left<ps/>"
"דוגמה of טקסט in english." "דוגמה of טקסט in english."
); );

View File

@ -47,10 +47,10 @@ static void _setup(void)
evas_object_textblock_text_markup_set evas_object_textblock_text_markup_set
(o, (o,
"<center><h1>Title</h1></center><br>" "<center><h1>Title</h1></center><br/>"
"<p><tab>A pragraph here <red>red text</red> and stuff.</p>" "<p><tab>A pragraph here <red>red text</red> and stuff.</p>"
"<p>And escaping &lt; and &gt; as well as &amp; as <h1>normal.</h1></p>" "<p>And escaping &lt; and &gt; as well as &amp; as <h1>normal.</h1></p>"
"<p>If you want a newline use &lt;br&gt;<br>woo a new line!</p>" "<p>If you want a newline use &lt;br&gt;<br/>woo a new line!</p>"
"<right>Right " "<right>Right "
"<style=outline color=#fff outline_color=#000>aligned</> " "<style=outline color=#fff outline_color=#000>aligned</> "
"<style=shadow shadow_color=#fff8>text</> " "<style=shadow shadow_color=#fff8>text</> "
@ -69,11 +69,11 @@ static void _setup(void)
"<color=#00f font_size=12>L</><color=#fff font_size=14>O</>" "<color=#00f font_size=12>L</><color=#fff font_size=14>O</>"
"<color=#ff0 font_size=16>R</><color=#0ff font_size=18> Bla Rai</>" "<color=#ff0 font_size=16>R</><color=#0ff font_size=18> Bla Rai</>"
"<color=#f0f font_size=20> Stuff</>.</p>" "<color=#f0f font_size=20> Stuff</>.</p>"
"<backing=on backing_color=#f00 linesize=20>20 Linesize<br>" "<backing=on backing_color=#f00 linesize=20>20 Linesize<br/>"
"<backing=on backing_color=#0f0 linesize=40>40 Linesize<br>" "<backing=on backing_color=#0f0 linesize=40>40 Linesize<br/>"
"<backing=on backing_color=#f00 linerelsize=100%>100 percent Linerelsize<br>" "<backing=on backing_color=#f00 linerelsize=100%>100 percent Linerelsize<br/>"
"<backing=on backing_color=#0f0 linerelsize=150%>150 percent Linerelsize<br>" "<backing=on backing_color=#0f0 linerelsize=150%>150 percent Linerelsize<br/>"
"<backing=on backing_color=#00f linerelsize=200%>200 percent Linerelsize<br>" "<backing=on backing_color=#00f linerelsize=200%>200 percent Linerelsize<br/>"
"<backing=off linerelsize=0%>" "<backing=off linerelsize=0%>"
"<blockquote>" "<blockquote>"
"(日本語 カタカナ ひらがな) " "(日本語 カタカナ ひらがな) "

View File

@ -37,54 +37,54 @@ static void _setup(void)
evas_object_textblock_text_markup_set evas_object_textblock_text_markup_set
(o, (o,
"This is a test of International test rendering in Evas<br>" "This is a test of International test rendering in Evas<br/>"
"<br>" "<br/>"
"Danish: 'Quizdeltagerne spiste jordbær med fløde, mens cirkusklovnen'<br>" "Danish: 'Quizdeltagerne spiste jordbær med fløde, mens cirkusklovnen'<br/>"
"German: 'Heizölrückstoßabdämpfung'<br>" "German: 'Heizölrückstoßabdämpfung'<br/>"
"Spanish: 'El pingüino Wenceslao hizo kilómetros bajo exhaustiva lluvia y'<br>" "Spanish: 'El pingüino Wenceslao hizo kilómetros bajo exhaustiva lluvia y'<br/>"
"French: 'Le cœur déçu mais l'âme plutôt naïve, Louÿs rêva de crapaüter en'<br>" "French: 'Le cœur déçu mais l'âme plutôt naïve, Louÿs rêva de crapaüter en'<br/>"
"Irish Gaelic: 'D'fhuascail Íosa, Úrmhac na hÓighe Beannaithe, pór Éava agus Ádhaimh'<br>" "Irish Gaelic: 'D'fhuascail Íosa, Úrmhac na hÓighe Beannaithe, pór Éava agus Ádhaimh'<br/>"
"Hungarian: 'Árvíztűrő tükörfúrógép'<br>" "Hungarian: 'Árvíztűrő tükörfúrógép'<br/>"
"Icelandic: 'Kæmi ný öxi hér ykist þjófum nú bæði víl og ádrepa'<br>" "Icelandic: 'Kæmi ný öxi hér ykist þjófum nú bæði víl og ádrepa'<br/>"
"Japanese (hiragana): 'いろはにほへとちりぬるを'<br>" "Japanese (hiragana): 'いろはにほへとちりぬるを'<br/>"
"Japanese (katakana): 'イロハニホヘト チリヌルヲ ワカヨタレソ ツネナラム'<br>" "Japanese (katakana): 'イロハニホヘト チリヌルヲ ワカヨタレソ ツネナラム'<br/>"
"Hebrew: 'דג סקרן שט בים מאוכזב ולפתע מצא לו חברה איך הקליטה?'<br>" "Hebrew: 'דג סקרן שט בים מאוכזב ולפתע מצא לו חברה איך הקליטה?'<br/>"
"Polish: 'Pchnąć w tę łódź jeża lub ośm skrzyń fig'<br>" "Polish: 'Pchnąć w tę łódź jeża lub ośm skrzyń fig'<br/>"
"Russian: 'В чащах юга жил бы цитрус? Да, но фальшивый экземпляр!'<br>" "Russian: 'В чащах юга жил бы цитрус? Да, но фальшивый экземпляр!'<br/>"
"IPA: 'ˈjunɪˌkoːd'<br>" "IPA: 'ˈjunɪˌkoːd'<br/>"
"American Dictionary: 'Ūnĭcōde̽'<br>" "American Dictionary: 'Ūnĭcōde̽'<br/>"
"Anglo-saxon: 'ᛡᚢᚾᛁᚳᚩᛞ'<br>" "Anglo-saxon: 'ᛡᚢᚾᛁᚳᚩᛞ'<br/>"
"Arabic: 'يونِكود'<br>" "Arabic: 'يونِكود'<br/>"
"Armenian: 'Յունիկօդ'<br>" "Armenian: 'Յունիկօդ'<br/>"
"Bengali: 'য়ূনিকোড'<br>" "Bengali: 'য়ূনিকোড'<br/>"
"Bopomofo: 'ㄊㄨㄥ˅ ㄧˋ ㄇㄚ˅'<br>" "Bopomofo: 'ㄊㄨㄥ˅ ㄧˋ ㄇㄚ˅'<br/>"
"Canadian Syllabics: 'ᔫᗂᑰᑦ'<br>" "Canadian Syllabics: 'ᔫᗂᑰᑦ'<br/>"
"Cherokee: 'ᏳᏂᎪᏛ'<br>" "Cherokee: 'ᏳᏂᎪᏛ'<br/>"
"Chinese: '萬國碼'<br>" "Chinese: '萬國碼'<br/>"
"Ethiopic: 'ዩኒኮድ'<br>" "Ethiopic: 'ዩኒኮድ'<br/>"
"Georgian: 'უნიკოდი'<br>" "Georgian: 'უნიკოდი'<br/>"
"Greek: 'Γιούνικοντ'<br>" "Greek: 'Γιούνικοντ'<br/>"
/* also test the html entity stuff a bit */ /* also test the html entity stuff a bit */
"Greek continued: '&tau;&upsilon;&lambda;&theta;'<br>" "Greek continued: '&tau;&upsilon;&lambda;&theta;'<br/>"
"Gujarati: 'યૂનિકોડ'<br>" "Gujarati: 'યૂનિકોડ'<br/>"
"Gurmukhi: 'ਯੂਨਿਕੋਡ'<br>" "Gurmukhi: 'ਯੂਨਿਕੋਡ'<br/>"
"Hindi: 'यूनिकोड'<br>" "Hindi: 'यूनिकोड'<br/>"
"Kannada: 'ಯೂನಿಕೋಡ್'<br>" "Kannada: 'ಯೂನಿಕೋಡ್'<br/>"
"Khmer: 'យូនីគោដ'<br>" "Khmer: 'យូនីគោដ'<br/>"
"Korean: '유니코드'<br>" "Korean: '유니코드'<br/>"
"Malayalam: 'യൂനികോഡ്'<br>" "Malayalam: 'യൂനികോഡ്'<br/>"
"Ogham: 'ᚔᚒᚅᚔᚉᚑᚇ'<br>" "Ogham: 'ᚔᚒᚅᚔᚉᚑᚇ'<br/>"
"Oriya: 'ୟୂନିକୋଡ'<br>" "Oriya: 'ୟୂନିକୋଡ'<br/>"
"Persian: 'یونی‌کُد'<br>" "Persian: 'یونی‌کُد'<br/>"
"Sinhala: 'යණනිකෞද්'<br>" "Sinhala: 'යණනිකෞද්'<br/>"
"Syriac: 'ܝܘܢܝܩܘܕ'<br>" "Syriac: 'ܝܘܢܝܩܘܕ'<br/>"
"Tamil:'யூனிகோட்'<br>" "Tamil:'யூனிகோட்'<br/>"
"Telugu: 'యూనికోడ్'<br>" "Telugu: 'యూనికోడ్'<br/>"
"Thai: 'ยูนืโคด'<br>" "Thai: 'ยูนืโคด'<br/>"
"Tibetan: 'ཨུ་ནི་ཀོཌྲ།'<br>" "Tibetan: 'ཨུ་ནི་ཀོཌྲ།'<br/>"
"Yiddish: 'יוניקאָד'<br>" "Yiddish: 'יוניקאָד'<br/>"
); );
evas_object_show(o); evas_object_show(o);

View File

@ -40,62 +40,62 @@ static void _setup(void)
(o, (o,
"This test just appends and removes text from different paragraphs, it's " "This test just appends and removes text from different paragraphs, it's "
"not a very visual test, it's included for benchmarking purposes." "not a very visual test, it's included for benchmarking purposes."
"<ps>" "<ps/>"
"Enlightenment is the flagship and original name bearer for this project. Once it was just a humble window manager for X11 that wanted to do things differently. To do them better, but it has expanded. This can be confusing so when we refer to Enlightenment, we may mean the project as a whole or just the window manager proper. The libraries behind Enlightenment are referred to as EFL collectively, each with a specific name and purpose." "Enlightenment is the flagship and original name bearer for this project. Once it was just a humble window manager for X11 that wanted to do things differently. To do them better, but it has expanded. This can be confusing so when we refer to Enlightenment, we may mean the project as a whole or just the window manager proper. The libraries behind Enlightenment are referred to as EFL collectively, each with a specific name and purpose."
"<ps>" "<ps/>"
"The window manager is a lean, fast, modular and very extensible window manager for X11 and Linux. It is classed as a \"desktop shell\" providing the things you need to operate your desktop (or laptop), but is not a whole application suite. This covered launching applications, managing their windows and doing other system tasks like suspending, reboots, managing files etc.<br>" "The window manager is a lean, fast, modular and very extensible window manager for X11 and Linux. It is classed as a \"desktop shell\" providing the things you need to operate your desktop (or laptop), but is not a whole application suite. This covered launching applications, managing their windows and doing other system tasks like suspending, reboots, managing files etc.<br/>"
"Platform Support<br>" "Platform Support<br/>"
"Linux BSD Windows Apple" "Linux BSD Windows Apple"
"<ps>" "<ps/>"
"Enlightenment and EFL support several platforms, though Linux is the primary platform of choice for our developers, some make efforts to make things work on FreeBSD and other BSD's, Solaris, MacOS X, Windows (XP, Vista, 7 etc.), Windows CE and more. Compatibility will vary, but most of core EFL support all Linuxes, BSD's, Solaris and other UNIX-like OS's. Mac support should work mostly thanks to the X11 support in OS X, and Windows support exists for most of the core libraries (XP, Vista, 7, CE)." "Enlightenment and EFL support several platforms, though Linux is the primary platform of choice for our developers, some make efforts to make things work on FreeBSD and other BSD's, Solaris, MacOS X, Windows (XP, Vista, 7 etc.), Windows CE and more. Compatibility will vary, but most of core EFL support all Linuxes, BSD's, Solaris and other UNIX-like OS's. Mac support should work mostly thanks to the X11 support in OS X, and Windows support exists for most of the core libraries (XP, Vista, 7, CE)."
"<ps>" "<ps/>"
"Please contact us for more information if you have problems with support in your platform. Just remember we have limited resources and most of them focus on the core open-source targets.<br>" "Please contact us for more information if you have problems with support in your platform. Just remember we have limited resources and most of them focus on the core open-source targets.<br/>"
"Proven effectiveness" "Proven effectiveness"
"<ps>" "<ps/>"
"Enlightenment libraries already power millions of systems, from mobile phones to set top boxes, desktops, laptops, game systems and more. It is only now being recognized for its forward-thinking approaches, as products and designers want to do more than the boring functional user experiences of the past. This is where EFL excels." "Enlightenment libraries already power millions of systems, from mobile phones to set top boxes, desktops, laptops, game systems and more. It is only now being recognized for its forward-thinking approaches, as products and designers want to do more than the boring functional user experiences of the past. This is where EFL excels."
"<ps>" "<ps/>"
"Free.fr is shipping millions of set top boxes in France, powered by EFL. The Openmoko Freerunner sold thousands of devices with EFL on them. Yellow Dog Linux for the Sony PS3 ships with Enlightenment as the default. EFL has been used on printers, netbooks and more." "Free.fr is shipping millions of set top boxes in France, powered by EFL. The Openmoko Freerunner sold thousands of devices with EFL on them. Yellow Dog Linux for the Sony PS3 ships with Enlightenment as the default. EFL has been used on printers, netbooks and more."
"<ps>" "<ps/>"
"Building Blocks" "Building Blocks"
"<ps>" "<ps/>"
"Enlightenment, the window manager is built on top of building blocks known as EFL (the Enlightenment Foundation Libraries). There are more than can be sensibly put into the simple block diagram above, but this covers the essentials.<br>" "Enlightenment, the window manager is built on top of building blocks known as EFL (the Enlightenment Foundation Libraries). There are more than can be sensibly put into the simple block diagram above, but this covers the essentials.<br/>"
"Simple E stack" "Simple E stack"
"<ps>" "<ps/>"
"Pretty much any application written using Core EFL libraries will use one or more of these depending on its needs. It may only need the lower level ones or use all of them to the top of the stack. Each library fulfills a purpose, so it may be skipped if not needed.<br>" "Pretty much any application written using Core EFL libraries will use one or more of these depending on its needs. It may only need the lower level ones or use all of them to the top of the stack. Each library fulfills a purpose, so it may be skipped if not needed.<br/>"
"Core<ps>Core EFL components are:<ps> * Evas<br>" "Core<ps/>Core EFL components are:<ps/> * Evas<br/>"
" * Eina<br>" " * Eina<br/>"
" * Edje<br>" " * Edje<br/>"
" * Eet<br>" " * Eet<br/>"
" * Ecore<br>" " * Ecore<br/>"
" * Efreet<br>" " * Efreet<br/>"
" * E_Dbus<br>" " * E_Dbus<br/>"
" * Embryo<br>" " * Embryo<br/>"
" * Eeze<br>" " * Eeze<br/>"
" * Elementary (window manager will use this in 0.18)<ps>Binding support exists for several languages such as:<ps> * Python<br>" " * Elementary (window manager will use this in 0.18)<ps/>Binding support exists for several languages such as:<ps/> * Python<br/>"
" * Javascript<br>" " * Javascript<br/>"
" * Perl<br>" " * Perl<br/>"
" * C++<br>" " * C++<br/>"
" * Ruby<ps>There are other libraries and applications which build on core EFL and function on other systems too, providing more functionality, examples, and utility:<ps> * Emotion<br>" " * Ruby<ps/>There are other libraries and applications which build on core EFL and function on other systems too, providing more functionality, examples, and utility:<ps/> * Emotion<br/>"
" * Ethumb<br>" " * Ethumb<br/>"
" * Exquisite<br>" " * Exquisite<br/>"
" * Eve<br>" " * Eve<br/>"
" * Edje Editor<br>" " * Edje Editor<br/>"
" * E UPnP<br>" " * E UPnP<br/>"
" * Enesim<br>" " * Enesim<br/>"
" * Expedite<br>" " * Expedite<br/>"
" * Epdf<br>" " * Epdf<br/>"
" * Exchange<br>" " * Exchange<br/>"
" * Eweather<br>" " * Eweather<br/>"
" * Rage<br>" " * Rage<br/>"
" * Evil<br>" " * Evil<br/>"
" * Exalt<ps> <br>" " * Exalt<ps/> <br/>"
"Devices<br>" "Devices<br/>"
"Laptop<ps>Enlightenment and EFL use desktop Linux systems as a primary method of development because it is fast and simple to do so, but all of it is written with the express goal in mind of also working on devices from Mobile Phones, to Televisions, Netbooks and more.<br>" "Laptop<ps/>Enlightenment and EFL use desktop Linux systems as a primary method of development because it is fast and simple to do so, but all of it is written with the express goal in mind of also working on devices from Mobile Phones, to Televisions, Netbooks and more.<br/>"
"Phone<ps>We have run and tested on x86-32, x86-64, Atom, Power-PC, ARM (ARM9, ARM11, Cortex-A8 and more), MIPS, Sparc, and many other architectures. The suggested minimum RAM required for a full Linux system + EFL application is 16MB, but you may be able to get by on 8MB. For full functionality 64MB or more is suggested. As little as a 200Mhz ARM core will provide sufficient processing power (depending on needs).<br>" "Phone<ps/>We have run and tested on x86-32, x86-64, Atom, Power-PC, ARM (ARM9, ARM11, Cortex-A8 and more), MIPS, Sparc, and many other architectures. The suggested minimum RAM required for a full Linux system + EFL application is 16MB, but you may be able to get by on 8MB. For full functionality 64MB or more is suggested. As little as a 200Mhz ARM core will provide sufficient processing power (depending on needs).<br/>"
"Various Processors<ps>Screens from even less than QVGA (320x240 or 240x320) screens all the way up to and beyond full-HD (1920x1080) are covered by EFL. It has the ability to scale user interfaces to almost any sane resolution, as well as adapt to differing input device resolutions, from mouse and stylus to fat fingers. It can draw displays from e-paper through 8-bit paletted displays, 16bit beautifully dithered ones all the way to full 24/32bit OLED beauties.<br>" "Various Processors<ps/>Screens from even less than QVGA (320x240 or 240x320) screens all the way up to and beyond full-HD (1920x1080) are covered by EFL. It has the ability to scale user interfaces to almost any sane resolution, as well as adapt to differing input device resolutions, from mouse and stylus to fat fingers. It can draw displays from e-paper through 8-bit paletted displays, 16bit beautifully dithered ones all the way to full 24/32bit OLED beauties.<br/>"
"Graphics" "Graphics"
"<ps>" "<ps/>"
"Enlightenment is built by designers and programmers who want others to be able to do more with less. Some of Enlightenment's libraries do not do anything with graphics at all, but it is the ones that do that are the shining stars of the Enlightenment world.<ps>Evas is the canvas layer. It is not a drawing library. It is not like OpenGL, Cairo, XRender, GDI, DirectFB etc. It is a scene graph library that retains state of all objects in it. They are created then manipulated until they are no longer needed, at which point they are deleted. This allows the programmer to work in terms that a designer thinks of. It is direct mapping, as opposed to having to convert the concepts into drawing commands in the right order, calculate minimum drawing calls needed to get the job done etc.<ps>Evas also handles abstracting the rendering mechanism. With zero changes the same application can move from software to OpenGL rendering, as they all use an abstracted scene graph to describe the world (canvas) to Evas. Evas supports multiple targets, but the most useful are the high-speed software rendering engines and OpenGL (as well as OpenGL-ES 2.0).<ps>Evas not only does quality rendering and compositing, but also can scale, rotate and fully 3D transform objects, allowing for sought-after 3D effects in your interfaces. It supplies these abilities in both software and OpenGL rendering, so you are never caught with unexpected loss of features. The software rendering is even fast enough to provide the 3D without any acceleration on devices for simple uses.<ps>Edje is a meta-object design library that is somewhere between Flash, PSD, SVG and HTML+CSS. It separates design out from code and into a dynamically loaded data file. This file is compressed and loaded very quickly, along with being cached and shared betweeen instances.<ps>This allows design to be provided at runtime by different design (EDJ) files, leaving the programmer to worry about overall application implementation and coarse grained UI as opposed to needing to worry about all the little details that the artists may vary even until the day before shipping the product.<br>" "Enlightenment is built by designers and programmers who want others to be able to do more with less. Some of Enlightenment's libraries do not do anything with graphics at all, but it is the ones that do that are the shining stars of the Enlightenment world.<ps/>Evas is the canvas layer. It is not a drawing library. It is not like OpenGL, Cairo, XRender, GDI, DirectFB etc. It is a scene graph library that retains state of all objects in it. They are created then manipulated until they are no longer needed, at which point they are deleted. This allows the programmer to work in terms that a designer thinks of. It is direct mapping, as opposed to having to convert the concepts into drawing commands in the right order, calculate minimum drawing calls needed to get the job done etc.<ps/>Evas also handles abstracting the rendering mechanism. With zero changes the same application can move from software to OpenGL rendering, as they all use an abstracted scene graph to describe the world (canvas) to Evas. Evas supports multiple targets, but the most useful are the high-speed software rendering engines and OpenGL (as well as OpenGL-ES 2.0).<ps/>Evas not only does quality rendering and compositing, but also can scale, rotate and fully 3D transform objects, allowing for sought-after 3D effects in your interfaces. It supplies these abilities in both software and OpenGL rendering, so you are never caught with unexpected loss of features. The software rendering is even fast enough to provide the 3D without any acceleration on devices for simple uses.<ps/>Edje is a meta-object design library that is somewhere between Flash, PSD, SVG and HTML+CSS. It separates design out from code and into a dynamically loaded data file. This file is compressed and loaded very quickly, along with being cached and shared betweeen instances.<ps/>This allows design to be provided at runtime by different design (EDJ) files, leaving the programmer to worry about overall application implementation and coarse grained UI as opposed to needing to worry about all the little details that the artists may vary even until the day before shipping the product.<br/>"
); );
evas_object_move(o_text, 0, 0); evas_object_move(o_text, 0, 0);
evas_object_resize(o_text, win_w, win_h); evas_object_resize(o_text, win_w, win_h);