From a5d3c5371e089c10c18c3a51532137a90aaeaf1a Mon Sep 17 00:00:00 2001
From: plentini
Date: Wed, 13 Jan 2016 11:11:54 -0300
Subject: [PATCH] Issue #62 Add support for word-wrap property
---
.../instance/testPrintStringOfTextProperties.st | 3 ++-
.../CssDeclarationBlockTest.class/methodProperties.json | 2 +-
source/RenoirSt-Tests.package/monticello.meta/version | 2 +-
source/RenoirSt.package/CssConstants.class/class/breakWord.st | 3 +++
.../RenoirSt.package/CssConstants.class/methodProperties.json | 1 +
.../CssDeclarationBlock.class/instance/wordWrap..st | 3 +++
.../CssDeclarationBlock.class/methodProperties.json | 1 +
source/RenoirSt.package/monticello.meta/version | 2 +-
8 files changed, 13 insertions(+), 4 deletions(-)
create mode 100644 source/RenoirSt.package/CssConstants.class/class/breakWord.st
create mode 100644 source/RenoirSt.package/CssDeclarationBlock.class/instance/wordWrap..st
diff --git a/source/RenoirSt-Tests.package/CssDeclarationBlockTest.class/instance/testPrintStringOfTextProperties.st b/source/RenoirSt-Tests.package/CssDeclarationBlockTest.class/instance/testPrintStringOfTextProperties.st
index b2322f0..322d83d 100644
--- a/source/RenoirSt-Tests.package/CssDeclarationBlockTest.class/instance/testPrintStringOfTextProperties.st
+++ b/source/RenoirSt-Tests.package/CssDeclarationBlockTest.class/instance/testPrintStringOfTextProperties.st
@@ -8,4 +8,5 @@ testPrintStringOfTextProperties
assert: [ :style | style textIndent: 5 percent ] rendersProperty: 'text-indent' withValue: '5%';
assert: [ :style | style textTransform: CssConstants capitalize ] rendersProperty: 'text-transform' withValue: 'capitalize';
assert: [ :style | style whiteSpace: CssConstants nowrap ] rendersProperty: 'white-space' withValue: 'nowrap';
- assert: [ :style | style wordSpacing: CssConstants normal ] rendersProperty: 'word-spacing' withValue: 'normal'
\ No newline at end of file
+ assert: [ :style | style wordSpacing: CssConstants normal ] rendersProperty: 'word-spacing' withValue: 'normal';
+ assert: [ :style | style wordWrap: CssConstants breakWord ] rendersProperty: 'word-wrap' withValue: 'break-word'
\ No newline at end of file
diff --git a/source/RenoirSt-Tests.package/CssDeclarationBlockTest.class/methodProperties.json b/source/RenoirSt-Tests.package/CssDeclarationBlockTest.class/methodProperties.json
index 477dc78..cd49570 100644
--- a/source/RenoirSt-Tests.package/CssDeclarationBlockTest.class/methodProperties.json
+++ b/source/RenoirSt-Tests.package/CssDeclarationBlockTest.class/methodProperties.json
@@ -19,7 +19,7 @@
"testPrintStringOfPaddingProperties" : "GabrielOmarCotelli 3/8/2014 16:35",
"testPrintStringOfTableProperties" : "GabrielOmarCotelli 3/8/2014 16:58",
"testPrintStringOfTextDecorationProperties" : "GabrielOmarCotelli 4/12/2014 15:47",
- "testPrintStringOfTextProperties" : "GabrielOmarCotelli 3/8/2014 17:03",
+ "testPrintStringOfTextProperties" : "PedroAntonioLentini 1/13/2016 11:02",
"testPrintStringOfUIProperties" : "GabrielOmarCotelli 3/8/2014 18:20",
"testPrintStringOfVisualEffectProperties" : "GabrielOmarCotelli 10/28/2015 15:32",
"testPrintStringOfVisualFormattingProperties" : "GabrielOmarCotelli 3/8/2014 19:35",
diff --git a/source/RenoirSt-Tests.package/monticello.meta/version b/source/RenoirSt-Tests.package/monticello.meta/version
index a705691..31a37c9 100644
--- a/source/RenoirSt-Tests.package/monticello.meta/version
+++ b/source/RenoirSt-Tests.package/monticello.meta/version
@@ -1 +1 @@
-(name 'RenoirSt-Tests-GabrielOmarCotelli.37' message 'Issue #49
Improve test cases to use and to ease porting' id 'cdd80177-d272-7046-9479-241ab7d34a3f' date '28 October 2015' time '7:14:50.462421 pm' author 'GabrielOmarCotelli' ancestors ((name 'RenoirSt-Tests-GabrielOmarCotelli.36' message 'Issue #33
Implement @font-face rules and some font reference abstractions' id 'e05005b9-54b4-9249-b388-94e1fa34dd3d' date '28 October 2015' time '6:35:23.533421 pm' author 'GabrielOmarCotelli' ancestors ((name 'RenoirSt-Tests-GabrielOmarCotelli.35' message '- Implement greaseString in CssDeclarationBlock to allow using it inlined as style: in an HTML element.
- Changed URL default semantics and add extension to allow consideration as relative to the style sheet' id '0e63da61-a946-2f42-8359-52b6891a3f48' date '28 October 2015' time '5:00:49.915421 pm' author 'GabrielOmarCotelli' ancestors ((name 'RenoirSt-Tests-GabrielOmarCotelli.34' message 'Issue #53 - Improve Attribute Reference with string fallbacks' id '0592091f-9da3-0640-9a36-82724909f5c4' date '28 October 2015' time '4:04:03.450421 pm' author 'GabrielOmarCotelli' ancestors ((name 'RenoirSt-Tests-GabrielOmarCotelli.33' message '- Add conversion method in colors to provide an alpha value for an existing color
- Fix Bug in HSLColor function name when alpha value was provided
- Add some properties and constants' id 'ec3737ef-5b0b-fd4e-9834-1a8a2299b737' date '28 October 2015' time '3:49:50.608421 pm' author 'GabrielOmarCotelli' ancestors ((name 'RenoirSt-Tests-GabrielOmarCotelli.32' message 'Issue #61. Add a better abstraction for box shadows' id 'dd8720a1-95fb-8143-8763-08a3323df0ca' date '28 October 2015' time '2:49:10.300421 pm' author 'GabrielOmarCotelli' ancestors ((name 'RenoirSt-Tests-GabrielOmarCotelli.31' message 'Add not pseudoclass selector shortcut' id '09787320-e5a2-ad41-aaf1-bccc505cfa6f' date '28 October 2015' time '10:09:58.995421 am' author 'GabrielOmarCotelli' ancestors ((name 'RenoirSt-Tests-GabrielOmarCotelli.30' message 'Issue #40 - Gradient Support
Addes support for linear-gradient(), radial-gradient(), repeating-linear-gradient(), repeating-radial-gradient() and some constants' id '7d4aec93-b9db-354e-bed9-a6db6ebfb60e' date '14 April 2014' time '11:07:31.195813 am' author 'GabrielOmarCotelli' ancestors () stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())
\ No newline at end of file
+(name 'RenoirSt-Tests-PedroAntonioLentini.38' message 'Issue #62 Add support for word-wrap property' id '7df4eb13-ffb6-874e-8935-9a742109132e' date '13 January 2016' time '11:09:21.945214 am' author 'PedroAntonioLentini' ancestors ((name 'RenoirSt-Tests-GabrielOmarCotelli.37' message 'Issue #49
Improve test cases to use and to ease porting' id 'cdd80177-d272-7046-9479-241ab7d34a3f' date '28 October 2015' time '7:14:50.462421 pm' author 'GabrielOmarCotelli' ancestors ((name 'RenoirSt-Tests-GabrielOmarCotelli.36' message 'Issue #33
Implement @font-face rules and some font reference abstractions' id 'e05005b9-54b4-9249-b388-94e1fa34dd3d' date '28 October 2015' time '6:35:23.533421 pm' author 'GabrielOmarCotelli' ancestors ((name 'RenoirSt-Tests-GabrielOmarCotelli.35' message '- Implement greaseString in CssDeclarationBlock to allow using it inlined as style: in an HTML element.
- Changed URL default semantics and add extension to allow consideration as relative to the style sheet' id '0e63da61-a946-2f42-8359-52b6891a3f48' date '28 October 2015' time '5:00:49.915421 pm' author 'GabrielOmarCotelli' ancestors ((name 'RenoirSt-Tests-GabrielOmarCotelli.34' message 'Issue #53 - Improve Attribute Reference with string fallbacks' id '0592091f-9da3-0640-9a36-82724909f5c4' date '28 October 2015' time '4:04:03.450421 pm' author 'GabrielOmarCotelli' ancestors ((name 'RenoirSt-Tests-GabrielOmarCotelli.33' message '- Add conversion method in colors to provide an alpha value for an existing color
- Fix Bug in HSLColor function name when alpha value was provided
- Add some properties and constants' id 'ec3737ef-5b0b-fd4e-9834-1a8a2299b737' date '28 October 2015' time '3:49:50.608421 pm' author 'GabrielOmarCotelli' ancestors ((name 'RenoirSt-Tests-GabrielOmarCotelli.32' message 'Issue #61. Add a better abstraction for box shadows' id 'dd8720a1-95fb-8143-8763-08a3323df0ca' date '28 October 2015' time '2:49:10.300421 pm' author 'GabrielOmarCotelli' ancestors ((name 'RenoirSt-Tests-GabrielOmarCotelli.31' message 'Add not pseudoclass selector shortcut' id '09787320-e5a2-ad41-aaf1-bccc505cfa6f' date '28 October 2015' time '10:09:58.995421 am' author 'GabrielOmarCotelli' ancestors ((name 'RenoirSt-Tests-GabrielOmarCotelli.30' message 'Issue #40 - Gradient Support
Addes support for linear-gradient(), radial-gradient(), repeating-linear-gradient(), repeating-radial-gradient() and some constants' id '7d4aec93-b9db-354e-bed9-a6db6ebfb60e' date '14 April 2014' time '11:07:31.195813 am' author 'GabrielOmarCotelli' ancestors () stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())
\ No newline at end of file
diff --git a/source/RenoirSt.package/CssConstants.class/class/breakWord.st b/source/RenoirSt.package/CssConstants.class/class/breakWord.st
new file mode 100644
index 0000000..89032c2
--- /dev/null
+++ b/source/RenoirSt.package/CssConstants.class/class/breakWord.st
@@ -0,0 +1,3 @@
+Accessing - Text
+breakWord
+ ^'break-word'
\ No newline at end of file
diff --git a/source/RenoirSt.package/CssConstants.class/methodProperties.json b/source/RenoirSt.package/CssConstants.class/methodProperties.json
index a94b2b0..849c14e 100644
--- a/source/RenoirSt.package/CssConstants.class/methodProperties.json
+++ b/source/RenoirSt.package/CssConstants.class/methodProperties.json
@@ -13,6 +13,7 @@
"borderBox" : "GabrielOmarCotelli 4/8/2014 23:05",
"both" : "GabrielOmarCotelli 3/6/2014 23:32",
"bottom" : "GabrielOmarCotelli 3/6/2014 22:02",
+ "breakWord" : "PedroAntonioLentini 1/13/2016 11:03",
"capitalize" : "GabrielOmarCotelli 3/6/2014 23:44",
"caption" : "GabrielOmarCotelli 3/6/2014 22:08",
"center" : "GabrielOmarCotelli 3/6/2014 23:43",
diff --git a/source/RenoirSt.package/CssDeclarationBlock.class/instance/wordWrap..st b/source/RenoirSt.package/CssDeclarationBlock.class/instance/wordWrap..st
new file mode 100644
index 0000000..a6906ec
--- /dev/null
+++ b/source/RenoirSt.package/CssDeclarationBlock.class/instance/wordWrap..st
@@ -0,0 +1,3 @@
+text properties
+wordWrap: aCssValue
+ self propertyAt: 'word-wrap' put: aCssValue
\ No newline at end of file
diff --git a/source/RenoirSt.package/CssDeclarationBlock.class/methodProperties.json b/source/RenoirSt.package/CssDeclarationBlock.class/methodProperties.json
index 5f1cdae..fa0d6de 100644
--- a/source/RenoirSt.package/CssDeclarationBlock.class/methodProperties.json
+++ b/source/RenoirSt.package/CssDeclarationBlock.class/methodProperties.json
@@ -134,4 +134,5 @@
"whiteSpace:" : "GabrielOmarCotelli 3/5/2014 09:13",
"width:" : "GabrielOmarCotelli 3/5/2014 08:47",
"wordSpacing:" : "GabrielOmarCotelli 3/5/2014 09:12",
+ "wordWrap:" : "PedroAntonioLentini 1/13/2016 11:05",
"zIndex:" : "GabrielOmarCotelli 3/5/2014 09:02" } }
diff --git a/source/RenoirSt.package/monticello.meta/version b/source/RenoirSt.package/monticello.meta/version
index 890f975..83e331b 100644
--- a/source/RenoirSt.package/monticello.meta/version
+++ b/source/RenoirSt.package/monticello.meta/version
@@ -1 +1 @@
-(name 'RenoirSt-GabrielOmarCotelli.45' message 'Issue #54
Add shortcuts for common heading levels.' id 'ee8818cf-4e86-0d45-8240-ed2db947b37b' date '28 October 2015' time '7:28:21.904421 pm' author 'GabrielOmarCotelli' ancestors ((name 'RenoirSt-GabrielOmarCotelli.44' message 'Issue #49
Improve test cases to use and to ease porting' id '97a3c7f3-4ff5-0f4b-b287-6da879ab5e83' date '28 October 2015' time '7:10:23.738421 pm' author 'GabrielOmarCotelli' ancestors ((name 'RenoirSt-GabrielOmarCotelli.43' message 'Issue #33
Implement @font-face rules and some font reference abstractions' id '4d2d6659-8d6f-4c45-a4c0-88c1bed4a412' date '28 October 2015' time '6:34:04.495421 pm' author 'GabrielOmarCotelli' ancestors ((name 'RenoirSt-GabrielOmarCotelli.42' message '- Implement greaseString in CssDeclarationBlock to allow using it inlined as style: in an HTML element.
- Changed URL default semantics and add extension to allow consideration as relative to the style sheet' id '35189da4-0316-e247-bc80-a74317b71f01' date '28 October 2015' time '4:57:17.015421 pm' author 'GabrielOmarCotelli' ancestors ((name 'RenoirSt-GabrielOmarCotelli.41' message 'Issue #53 - Improve Attribute Reference with string fallbacks' id 'e8de8020-efe5-e544-9242-41b26af03927' date '28 October 2015' time '4:03:02.023421 pm' author 'GabrielOmarCotelli' ancestors ((name 'RenoirSt-GabrielOmarCotelli.40' message '- Add conversion method in colors to provide an alpha value for an existing color
- Fix Bug in HSLColor function name when alpha value was provided
- Add some properties and constants' id '294c34ae-1f82-2544-b4ce-be3395c7ac98' date '28 October 2015' time '3:48:03.315421 pm' author 'GabrielOmarCotelli' ancestors ((name 'RenoirSt-GabrielOmarCotelli.39' message 'Issue #61. Add a better abstraction for box shadows' id 'a758a41e-a170-3a4e-a668-7fd25e5940fc' date '28 October 2015' time '2:47:56.600421 pm' author 'GabrielOmarCotelli' ancestors ((name 'RenoirSt-GabrielOmarCotelli.38' message 'Add "not" pseudoclass selector shortcut' id '5023c0b8-4468-1448-ba6f-4b86c6b6c7f7' date '28 October 2015' time '10:09:19.188421 am' author 'GabrielOmarCotelli' ancestors ((name 'RenoirSt-GabrielOmarCotelli.37' message 'Issue #40 - Gradient Support
Addes support for linear-gradient(), radial-gradient(), repeating-linear-gradient(), repeating-radial-gradient() and some constants' id '4017af8d-c9c3-694b-8312-e9c0974132bc' date '14 April 2014' time '11:07:14.512813 am' author 'GabrielOmarCotelli' ancestors () stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())
\ No newline at end of file
+(name 'RenoirSt-PedroAntonioLentini.46' message 'Issue #62 Add support for word-wrap property' id '05046216-3133-ac42-9925-d78732472267' date '13 January 2016' time '11:07:46.782214 am' author 'PedroAntonioLentini' ancestors ((name 'RenoirSt-GabrielOmarCotelli.45' message 'Issue #54
Add shortcuts for common heading levels.' id 'ee8818cf-4e86-0d45-8240-ed2db947b37b' date '28 October 2015' time '7:28:21.904421 pm' author 'GabrielOmarCotelli' ancestors ((name 'RenoirSt-GabrielOmarCotelli.44' message 'Issue #49
Improve test cases to use and to ease porting' id '97a3c7f3-4ff5-0f4b-b287-6da879ab5e83' date '28 October 2015' time '7:10:23.738421 pm' author 'GabrielOmarCotelli' ancestors ((name 'RenoirSt-GabrielOmarCotelli.43' message 'Issue #33
Implement @font-face rules and some font reference abstractions' id '4d2d6659-8d6f-4c45-a4c0-88c1bed4a412' date '28 October 2015' time '6:34:04.495421 pm' author 'GabrielOmarCotelli' ancestors ((name 'RenoirSt-GabrielOmarCotelli.42' message '- Implement greaseString in CssDeclarationBlock to allow using it inlined as style: in an HTML element.
- Changed URL default semantics and add extension to allow consideration as relative to the style sheet' id '35189da4-0316-e247-bc80-a74317b71f01' date '28 October 2015' time '4:57:17.015421 pm' author 'GabrielOmarCotelli' ancestors ((name 'RenoirSt-GabrielOmarCotelli.41' message 'Issue #53 - Improve Attribute Reference with string fallbacks' id 'e8de8020-efe5-e544-9242-41b26af03927' date '28 October 2015' time '4:03:02.023421 pm' author 'GabrielOmarCotelli' ancestors ((name 'RenoirSt-GabrielOmarCotelli.40' message '- Add conversion method in colors to provide an alpha value for an existing color
- Fix Bug in HSLColor function name when alpha value was provided
- Add some properties and constants' id '294c34ae-1f82-2544-b4ce-be3395c7ac98' date '28 October 2015' time '3:48:03.315421 pm' author 'GabrielOmarCotelli' ancestors ((name 'RenoirSt-GabrielOmarCotelli.39' message 'Issue #61. Add a better abstraction for box shadows' id 'a758a41e-a170-3a4e-a668-7fd25e5940fc' date '28 October 2015' time '2:47:56.600421 pm' author 'GabrielOmarCotelli' ancestors ((name 'RenoirSt-GabrielOmarCotelli.38' message 'Add "not" pseudoclass selector shortcut' id '5023c0b8-4468-1448-ba6f-4b86c6b6c7f7' date '28 October 2015' time '10:09:19.188421 am' author 'GabrielOmarCotelli' ancestors ((name 'RenoirSt-GabrielOmarCotelli.37' message 'Issue #40 - Gradient Support
Addes support for linear-gradient(), radial-gradient(), repeating-linear-gradient(), repeating-radial-gradient() and some constants' id '4017af8d-c9c3-694b-8312-e9c0974132bc' date '14 April 2014' time '11:07:14.512813 am' author 'GabrielOmarCotelli' ancestors () stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())
\ No newline at end of file