Fabio Niephaus uploaded a new version of CollectionsTests to project The Inbox:
http://source.squeak.org/inbox/CollectionsTests-fn.278.mcz ==================== Summary ==================== Name: CollectionsTests-fn.278 Author: fn Time: 7 March 2017, 10:51:12.161431 am UUID: 7d89cf7a-4cea-4ad9-98e0-ba174fc6b622 Ancestors: CollectionsTests-ul.277, CollectionsTests-fn.268 HtmlReadWriterTest: Add tests for style attributes in div and span containers and numberic HTML entities. =============== Diff against CollectionsTests-ul.277 =============== Item was added: + ----- Method: HtmlReadWriterTest>>test13SpanTag (in category 'tests') ----- + test13SpanTag + + { + '<span style="width: 100px;color:#FFFF00; font-style: bold; font-size: 10px">Hello, World!!</span>'. + 'Hello, World!!' asText + addAttribute: (TextColor color: Color yellow); + addAttribute: (TextEmphasis bold). + } pairsDo: [:expectedHtml :expectedText | + + self convertHtml: expectedHtml. + self assert: expectedText string equals: text string. + self assert: expectedText runs equals: text runs]! Item was added: + ----- Method: HtmlReadWriterTest>>test14NumericalHtmlEntities (in category 'tests') ----- + test14NumericalHtmlEntities + + { + '.!'. + '.!!' asText. + } pairsDo: [:expectedHtml :expectedText | + + self convertHtml: expectedHtml. + self assert: expectedText string equals: text string]! |
I wonder where the
width: 100px attribute comes from in the first test case.... --Hannes On Tue, 7 Mar 2017 09:51:14 0000, [hidden email] <[hidden email]> wrote: > Fabio Niephaus uploaded a new version of CollectionsTests to project The > Inbox: > http://source.squeak.org/inbox/CollectionsTests-fn.278.mcz > > ==================== Summary ==================== > > Name: CollectionsTests-fn.278 > Author: fn > Time: 7 March 2017, 10:51:12.161431 am > UUID: 7d89cf7a-4cea-4ad9-98e0-ba174fc6b622 > Ancestors: CollectionsTests-ul.277, CollectionsTests-fn.268 > > HtmlReadWriterTest: Add tests for style attributes in div and span > containers and numberic HTML entities. > > =============== Diff against CollectionsTests-ul.277 =============== > > Item was added: > + ----- Method: HtmlReadWriterTest>>test13SpanTag (in category 'tests') > ----- > + test13SpanTag > + > + { > + '<span style="width: 100px;color:#FFFF00; font-style: bold; font-size: > 10px">Hello, World!!</span>'. > + 'Hello, World!!' asText > + addAttribute: (TextColor color: Color yellow); > + addAttribute: (TextEmphasis bold). > + } pairsDo: [:expectedHtml :expectedText | > + > + self convertHtml: expectedHtml. > + self assert: expectedText string equals: text string. > + self assert: expectedText runs equals: text runs]! > > Item was added: > + ----- Method: HtmlReadWriterTest>>test14NumericalHtmlEntities (in category > 'tests') ----- > + test14NumericalHtmlEntities > + > + { > + '.!'. > + '.!!' asText. > + } pairsDo: [:expectedHtml :expectedText | > + > + self convertHtml: expectedHtml. > + self assert: expectedText string equals: text string]! > > > |
This is just some random noise to make sure this does not confuse the HtmlReadWriter.
-- On Tue, Mar 7, 2017 at 11:32 AM H. Hirzel <[hidden email]> wrote: I wonder where the |
Free forum by Nabble | Edit this page |