[MAVEN-BUILD] Royale-asjs - Build # 957 - Still Failing
The Apache Jenkins build system has built Royale-asjs (build #957) Status: Still Failing Check console output at https://builds.apache.org/job/Royale-asjs/957/ to view the results.
[royale-compiler] branch develop updated: handle fx:Array in top-level of fx:Declarations
This is an automated email from the ASF dual-hosted git repository. aharui pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-compiler.git The following commit(s) were added to refs/heads/develop by this push: new d9a185a handle fx:Array in top-level of fx:Declarations d9a185a is described below commit d9a185a4814a4da9eff0d9e999f2516a5e939197 Author: Alex Harui AuthorDate: Mon Aug 6 15:31:35 2018 -0700 handle fx:Array in top-level of fx:Declarations --- .../compiler/internal/codegen/mxml/royale/MXMLRoyaleEmitter.java| 6 ++ 1 file changed, 6 insertions(+) diff --git a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/mxml/royale/MXMLRoyaleEmitter.java b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/mxml/royale/MXMLRoyaleEmitter.java index 60f7a48..53f4636 100644 --- a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/mxml/royale/MXMLRoyaleEmitter.java +++ b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/mxml/royale/MXMLRoyaleEmitter.java @@ -2458,6 +2458,12 @@ public class MXMLRoyaleEmitter extends MXMLEmitter implements @Override public void emitArray(IMXMLArrayNode node) { + if (node.getParent() instanceof IMXMLDeclarationsNode) + { + // treat this like an instance. fx:Array at the top level of a Declaration defines a new property with a structure + emitInstance(node); + return; + } moveDown(false, null, null); boolean isSimple = true;
[royale-asjs] branch develop updated: integrating navigation buttons in the datechooser table
This is an automated email from the ASF dual-hosted git repository. carlosrovira pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git The following commit(s) were added to refs/heads/develop by this push: new e3d0b54 integrating navigation buttons in the datechooser table e3d0b54 is described below commit e3d0b54202681359114d67d85175b4077f40c305 Author: Carlos Rovira AuthorDate: Tue Aug 7 00:02:03 2018 +0200 integrating navigation buttons in the datechooser table --- .../projects/Jewel/src/main/resources/defaults.css | 7 + .../controllers/DateChooserMouseController.as | 11 +- .../itemRenderers/TableMapperForArrayListData.as | 25 ++- .../royale/jewel/beads/views/DateChooserView.as| 171 + .../royale/jewel/beads/views/DateFieldView.as | 4 +- .../apache/royale/jewel/beads/views/TableView.as | 8 +- .../src/main/sass/components/_datechooser.sass | 27 +--- .../Jewel/src/main/sass/components/_datefield.sass | 3 + .../JewelTheme/src/main/resources/defaults.css | 5 + .../main/sass/components-primary/_datechooser.sass | 10 +- 10 files changed, 120 insertions(+), 151 deletions(-) diff --git a/frameworks/projects/Jewel/src/main/resources/defaults.css b/frameworks/projects/Jewel/src/main/resources/defaults.css index f4ee9d5..1ee8388 100644 --- a/frameworks/projects/Jewel/src/main/resources/defaults.css +++ b/frameworks/projects/Jewel/src/main/resources/defaults.css @@ -246,6 +246,9 @@ j|ControlBar { IMeasurementBead: ClassReference("org.apache.royale.html.beads.ControlBarMeasurementBead"); } } +.jewel.datechooser .jewel.table .jewel.tableheader.buttonsRow { + padding: 0px; +} .jewel.datechooser .jewel.table td { padding: 0px; } @@ -265,6 +268,10 @@ j|DateChooserTable { IItemRenderer: ClassReference("org.apache.royale.jewel.itemRenderers.DateItemRenderer"); } +.dateChooserPopUp { + position: absolute; +} + j|DateField { IBeadView: ClassReference("org.apache.royale.jewel.beads.views.DateFieldView"); IBeadModel: ClassReference("org.apache.royale.jewel.beads.models.DateChooserModel"); diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controllers/DateChooserMouseController.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controllers/DateChooserMouseController.as index 3d5e3ad..b62ec8a 100644 --- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controllers/DateChooserMouseController.as +++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controllers/DateChooserMouseController.as @@ -18,17 +18,16 @@ package org.apache.royale.jewel.beads.controllers { - import org.apache.royale.jewel.beads.views.DateChooserView; - import org.apache.royale.jewel.beads.models.DateChooserModel; -import org.apache.royale.jewel.supportClasses.datechooser.DateChooserTable; - import org.apache.royale.core.IBeadController; import org.apache.royale.core.IBeadModel; import org.apache.royale.core.IBeadView; import org.apache.royale.core.IStrand; import org.apache.royale.events.Event; - import org.apache.royale.events.MouseEvent; import org.apache.royale.events.IEventDispatcher; + import org.apache.royale.events.MouseEvent; + import org.apache.royale.jewel.beads.models.DateChooserModel; + import org.apache.royale.jewel.beads.views.DateChooserView; + import org.apache.royale.jewel.supportClasses.datechooser.DateChooserTable; /** * The DateChooserMouseController class is responsible for listening to @@ -74,7 +73,7 @@ package org.apache.royale.jewel.beads.controllers view.prevMonthButton.addEventListener("click", prevMonthClickHandler); view.nextMonthButton.addEventListener("click", nextMonthClickHandler); -IEventDispatcher(view.dayList).addEventListener("change", tableHandler); +IEventDispatcher(view.daysTable).addEventListener("change", tableHandler); } private var model:DateChooserModel; diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/TableMapperForArrayListData.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/TableMapperForArrayListData.as index 7bf9002..284256b 100644 --- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/TableMapperForArrayListData.as +++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/TableMapperForArrayListData.as @@ -18,19 +18,14 @@ package org.apach
[MAVEN-BUILD] Royale-asjs - Build # 956 - Failure
The Apache Jenkins build system has built Royale-asjs (build #956) Status: Failure Check console output at https://builds.apache.org/job/Royale-asjs/956/ to view the results.
[royale-compiler] branch develop updated: namespaces is also a static dependency
This is an automated email from the ASF dual-hosted git repository. aharui pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-compiler.git The following commit(s) were added to refs/heads/develop by this push: new 6139480 namespaces is also a static dependency 6139480 is described below commit 6139480fda06a05fa54bc02f3ca45bbcf8cd940b Author: Alex Harui AuthorDate: Mon Aug 6 10:38:18 2018 -0700 namespaces is also a static dependency --- .../royale/compiler/internal/codegen/js/royale/JSRoyaleEmitter.java | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/royale/JSRoyaleEmitter.java b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/royale/JSRoyaleEmitter.java index 0452f54..9e8b53c 100644 --- a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/royale/JSRoyaleEmitter.java +++ b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/royale/JSRoyaleEmitter.java @@ -477,6 +477,7 @@ public class JSRoyaleEmitter extends JSGoogEmitter implements IJSRoyaleEmitter writeToken(ASEmitterTokens.NEW); write(IASLanguageConstants.Namespace); write(ASEmitterTokens.PAREN_OPEN); +staticUsedNames.add(IASLanguageConstants.Namespace); IExpressionNode uriNode = node.getNamespaceURINode(); if (uriNode == null) {
[royale-asjs] branch develop updated: Jewel DateChooser styles closer to what it should be
This is an automated email from the ASF dual-hosted git repository. carlosrovira pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git The following commit(s) were added to refs/heads/develop by this push: new 240bca9 Jewel DateChooser styles closer to what it should be 240bca9 is described below commit 240bca91194a1ca29d7bf32779bd194a14a8bb70 Author: Carlos Rovira AuthorDate: Mon Aug 6 19:04:17 2018 +0200 Jewel DateChooser styles closer to what it should be --- .../projects/Jewel/src/main/resources/defaults.css | 7 +++--- .../royale/jewel/beads/views/DateFieldView.as | 4 ++-- .../src/main/sass/components/_datechooser.sass | 13 --- .../JewelTheme/src/main/resources/defaults.css | 13 +-- .../main/sass/components-primary/_datechooser.sass | 26 ++ 5 files changed, 49 insertions(+), 14 deletions(-) diff --git a/frameworks/projects/Jewel/src/main/resources/defaults.css b/frameworks/projects/Jewel/src/main/resources/defaults.css index b6aa9dd..f4ee9d5 100644 --- a/frameworks/projects/Jewel/src/main/resources/defaults.css +++ b/frameworks/projects/Jewel/src/main/resources/defaults.css @@ -246,10 +246,11 @@ j|ControlBar { IMeasurementBead: ClassReference("org.apache.royale.html.beads.ControlBarMeasurementBead"); } } +.jewel.datechooser .jewel.table td { + padding: 0px; +} + .calendar.item { - width: 36px; - height: 36px; - text-align: center; padding: 10px; } diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/DateFieldView.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/DateFieldView.as index d71d2bc..a3b4575 100644 --- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/DateFieldView.as +++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/DateFieldView.as @@ -203,8 +203,8 @@ package org.apache.royale.jewel.beads.views if (!_popUp) { _popUp = new DateChooser(); - _popUp.width = 210; - _popUp.height = 230; + // _popUp.width = 210; + // _popUp.height = 230; } var model:IDateChooserModel = _strand.getBeadByType(IDateChooserModel) as IDateChooserModel; diff --git a/frameworks/projects/Jewel/src/main/sass/components/_datechooser.sass b/frameworks/projects/Jewel/src/main/sass/components/_datechooser.sass index b3fc4a7..9ea1676 100644 --- a/frameworks/projects/Jewel/src/main/sass/components/_datechooser.sass +++ b/frameworks/projects/Jewel/src/main/sass/components/_datechooser.sass @@ -22,12 +22,19 @@ // DateChooser variables .jewel.datechooser + +.jewel.table + + +th + +tbody +tr +td +padding: 0px .calendar &.item -width: 36px -height: 36px -text-align: center padding: 10px j|DateChooser diff --git a/frameworks/themes/JewelTheme/src/main/resources/defaults.css b/frameworks/themes/JewelTheme/src/main/resources/defaults.css index b368131..30b016f 100644 --- a/frameworks/themes/JewelTheme/src/main/resources/defaults.css +++ b/frameworks/themes/JewelTheme/src/main/resources/defaults.css @@ -235,13 +235,22 @@ j|Card { .jewel.datechooser { background: white; - width: 280px; + width: 330px; } -.jewel.datechooser .jewel.button, .jewel.datechooser .jewel.list { +.jewel.datechooser .jewel.table { background: white; border: none; box-shadow: none; } +.jewel.datechooser .jewel.table th { + background: white; + box-shadow: none; + border-left: 0px; +} +.jewel.datechooser .jewel.table td { + border-top: 0px; + border-left: 0px; +} .calendar.item { font-size: 1em; diff --git a/frameworks/themes/JewelTheme/src/main/sass/components-primary/_datechooser.sass b/frameworks/themes/JewelTheme/src/main/sass/components-primary/_datechooser.sass index d7562d7..dcb34b5 100644 --- a/frameworks/themes/JewelTheme/src/main/sass/components-primary/_datechooser.sass +++ b/frameworks/themes/JewelTheme/src/main/sass/components-primary/_datechooser.sass @@ -22,14 +22,32 @@ // DateChooser variables .jewel.datechooser -background: white -width: 280px +background: lighten($default-color, 20%) +width: 330px -.jewel.button, .jewel.list -background: white +// .jewel.button +// , .jewel.list +// background: white +// border: none +// box-shadow: none + +.jewel.table +background: lighten($default-color, 20%) border: none box-shadow: none +
[royale-asjs] 03/03: fix RichTextEditor
This is an automated email from the ASF dual-hosted git repository. aharui pushed a commit to branch feature/MXRoyale in repository https://gitbox.apache.org/repos/asf/royale-asjs.git commit bef6bc4682502a5be8ee67f5a67938132ae213e5 Author: Alex Harui AuthorDate: Mon Aug 6 10:01:03 2018 -0700 fix RichTextEditor --- .../src/main/royale/mx/controls/ColorPicker.as | 2 +- .../src/main/royale/mx/controls/ComboBox.as| 98 ++- .../src/main/royale/mx/controls/RichTextEditor.as | 793 - .../main/royale/mx/controls/RichTextEditor.mxml| 116 +-- .../src/main/royale/mx/controls/TextArea.as| 2 + 5 files changed, 164 insertions(+), 847 deletions(-) diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/ColorPicker.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/ColorPicker.as index 91485d9..37dac62 100644 --- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/ColorPicker.as +++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/ColorPicker.as @@ -82,7 +82,7 @@ use namespace mx_internal; * @playerversion AIR 1.1 * @productversion Royale 0.9.3 */ -//[Event(name="close", type="mx.events.DropdownEvent")] +[Event(name="close", type="mx.events.DropdownEvent")] /** * Dispatched if the ColorPicker editable diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/ComboBox.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/ComboBox.as index 1f204d6..62a5c72 100644 --- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/ComboBox.as +++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/ComboBox.as @@ -20,7 +20,10 @@ package mx.controls { import org.apache.royale.html.beads.IComboBoxView; - +COMPILE::JS +{ +import goog.DEBUG; +} COMPILE::SWF { } @@ -694,6 +697,99 @@ public class ComboBox extends ComboBase return (view as IComboBoxView).popUp; } +/** + * Number of pixels between the container's top border + * and the top of its content area. + * + * @default 0 + * + * @langversion 3.0 + * @playerversion Flash 9 + * @playerversion AIR 1.1 + * @productversion Royale 0.9.3 + */ +public function get paddingTop():Object +{ +if (GOOG::DEBUG) +trace("paddingTop not implemented"); +return 0; +} +public function set paddingTop(value:Object):void +{ +if (GOOG::DEBUG) +trace("paddingTop not implemented"); +} + +/** + * Number of pixels between the container's bottom border + * and the bottom of its content area. + * + * @default 0 + * + * @langversion 3.0 + * @playerversion Flash 9 + * @playerversion AIR 1.1 + * @productversion Royale 0.9.3 + */ +public function get paddingBottom():Object +{ +if (GOOG::DEBUG) +trace("paddingBottom not implemented"); +return 0; +} +public function set paddingBottom(value:Object):void +{ +if (GOOG::DEBUG) +trace("paddingBottom not implemented"); +} + +/** + * Number of pixels between the container's left border + * and the left of its content area. + * + * @default 0 + * + * @langversion 3.0 + * @playerversion Flash 9 + * @playerversion AIR 1.1 + * @productversion Royale 0.9.3 + */ +public function get paddingLeft():Object +{ +if (GOOG::DEBUG) +trace("paddingLeft not implemented"); +return 0; +} +public function set paddingLeft(value:Object):void +{ +if (GOOG::DEBUG) +trace("paddingLeft not implemented"); +} + +/** + * Number of pixels between the container's right border + * and the right of its content area. + * + * @default 0 + * + * @langversion 3.0 + * @playerversion Flash 9 + * @playerversion AIR 1.1 + * @productversion Royale 0.9.3 + */ +public function get paddingRight():Object +{ +if (GOOG::DEBUG) +trace("paddingRight not implemented"); +return 0; +} +public function set paddingRight(value:Object):void +{ +if (GOOG::DEBUG) +trace("paddingRight not implemented"); +} + + //-- // // Overridden properties diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/RichTextEditor.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/RichTextEditor.as deleted file mode 100644 index e4cce9e..000 --- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/RichTextEditor.as +++ /dev/null @@ -1,793 +0,0 @@ - -// -// Licensed to the Apache Software Foundation (ASF) under one or more -// contributor license agreements. See t
[royale-asjs] 02/03: don't need this manifest
This is an automated email from the ASF dual-hosted git repository. aharui pushed a commit to branch feature/MXRoyale in repository https://gitbox.apache.org/repos/asf/royale-asjs.git commit 1fa3f4fde4d8227550bf7166cef46335062456c9 Author: Alex Harui AuthorDate: Mon Aug 6 09:24:58 2018 -0700 don't need this manifest --- frameworks/air-config-template.xml| 4 frameworks/flex-config-template.xml | 4 frameworks/royale-config-template.xml | 4 3 files changed, 12 deletions(-) diff --git a/frameworks/air-config-template.xml b/frameworks/air-config-template.xml index af25137..b966740 100644 --- a/frameworks/air-config-template.xml +++ b/frameworks/air-config-template.xml @@ -132,10 +132,6 @@ mxml-2009-manifest.xml - http://www.adobe.com/2006/mxml - mxml-manifest.xml - - library://ns.apache.org/royale/basic projects/Binding/src/main/resources/basic-manifest.xml diff --git a/frameworks/flex-config-template.xml b/frameworks/flex-config-template.xml index e8985da..25bc08c 100644 --- a/frameworks/flex-config-template.xml +++ b/frameworks/flex-config-template.xml @@ -134,10 +134,6 @@ mxml-2009-manifest.xml - http://www.adobe.com/2006/mxml - mxml-manifest.xml - - library://ns.apache.org/royale/basic projects/Binding/src/main/resources/basic-manifest.xml diff --git a/frameworks/royale-config-template.xml b/frameworks/royale-config-template.xml index c4f013e..d0fab5c 100644 --- a/frameworks/royale-config-template.xml +++ b/frameworks/royale-config-template.xml @@ -134,10 +134,6 @@ mxml-2009-manifest.xml - http://www.adobe.com/2006/mxml - mxml-manifest.xml - - library://ns.apache.org/royale/basic projects/Binding/src/main/resources/basic-manifest.xml
[royale-asjs] 01/03: comment out resource bundles for now
This is an automated email from the ASF dual-hosted git repository. aharui pushed a commit to branch feature/MXRoyale in repository https://gitbox.apache.org/repos/asf/royale-asjs.git commit c488c39d4088f825d03a757b42030c2d1937dcc0 Author: Alex Harui AuthorDate: Mon Aug 6 09:24:45 2018 -0700 comment out resource bundles for now --- .../MXRoyale/src/main/royale/mx/collections/ListCollectionView.as | 2 +- frameworks/projects/MXRoyale/src/main/royale/mx/collections/Sort.as | 2 +- frameworks/projects/MXRoyale/src/main/royale/mx/core/UITextField.as | 2 +- .../projects/MXRoyale/src/main/royale/mx/formatters/DateFormatter.as | 2 +- .../MXRoyale/src/main/royale/mx/formatters/NumberFormatter.as | 4 ++-- .../projects/MXRoyale/src/main/royale/mx/messaging/ChannelSet.as | 4 ++-- .../MXRoyale/src/main/royale/mx/messaging/channels/AMFChannel.as | 2 +- .../projects/MXRoyale/src/main/royale/mx/skins/RectangularBorder.as | 2 +- .../projects/MXRoyale/src/main/royale/mx/validators/DateValidator.as | 4 ++-- .../MXRoyale/src/main/royale/mx/validators/NumberValidator.as | 2 +- .../MXRoyale/src/main/royale/mx/validators/PhoneNumberValidator.as| 2 +- .../MXRoyale/src/main/royale/mx/validators/RegExpValidator.as | 2 +- .../MXRoyale/src/main/royale/mx/validators/StringValidator.as | 2 +- .../SparkRoyale/src/main/royale/spark/components/Application.as | 2 +- 14 files changed, 17 insertions(+), 17 deletions(-) diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/collections/ListCollectionView.as b/frameworks/projects/MXRoyale/src/main/royale/mx/collections/ListCollectionView.as index 04c4e45..0b12b50 100644 --- a/frameworks/projects/MXRoyale/src/main/royale/mx/collections/ListCollectionView.as +++ b/frameworks/projects/MXRoyale/src/main/royale/mx/collections/ListCollectionView.as @@ -60,7 +60,7 @@ package mx.collections */ [Event(name="collectionChange", type="mx.events.CollectionEvent")] -[ResourceBundle("collections")] +//[ResourceBundle("collections")] /** * The ListCollectionView class adds the properties and methods of the diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/collections/Sort.as b/frameworks/projects/MXRoyale/src/main/royale/mx/collections/Sort.as index 39dc1f2..4f6f812 100644 --- a/frameworks/projects/MXRoyale/src/main/royale/mx/collections/Sort.as +++ b/frameworks/projects/MXRoyale/src/main/royale/mx/collections/Sort.as @@ -36,7 +36,7 @@ package mx.collections use namespace mx_internal; [DefaultProperty("fields")] -[ResourceBundle("collections")] +//[ResourceBundle("collections")] /* [Alternative(replacement="spark.collections.Sort", since="4.5")] */ /** diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UITextField.as b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UITextField.as index 60920ab..cf3ba47 100644 --- a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UITextField.as +++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UITextField.as @@ -69,7 +69,7 @@ include "../styles/metadata/TextStyles.as" // Other metadata //-- -[ResourceBundle("core")] +//[ResourceBundle("core")] /** * The UITextField class defines the component used by many Flex diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/formatters/DateFormatter.as b/frameworks/projects/MXRoyale/src/main/royale/mx/formatters/DateFormatter.as index 34a43e3..5592d46 100644 --- a/frameworks/projects/MXRoyale/src/main/royale/mx/formatters/DateFormatter.as +++ b/frameworks/projects/MXRoyale/src/main/royale/mx/formatters/DateFormatter.as @@ -26,7 +26,7 @@ import mx.managers.SystemManager; */ use namespace mx_internal; -[ResourceBundle("SharedResources")] +//[ResourceBundle("SharedResources")] [Alternative(replacement="spark.formatters.DateTimeFormatter", since="4.5")] /** diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/formatters/NumberFormatter.as b/frameworks/projects/MXRoyale/src/main/royale/mx/formatters/NumberFormatter.as index 412da50..1b6e660 100644 --- a/frameworks/projects/MXRoyale/src/main/royale/mx/formatters/NumberFormatter.as +++ b/frameworks/projects/MXRoyale/src/main/royale/mx/formatters/NumberFormatter.as @@ -23,8 +23,8 @@ package mx.formatters import mx.managers.ISystemManager; //import mx.managers.SystemManager; -[ResourceBundle("formatters")] -[ResourceBundle("SharedResources")] +//[ResourceBundle("formatters")] +//[ResourceBundle("SharedResources")] [Alternative(replacement="spark.formatters.NumberFormatter", since="4.5")] /** diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/messaging/ChannelSet.as b/frameworks/projects/MXRoyale/src/main/royale/mx/messaging/ChannelSet.as index eb95791..eb47e71 100644 --- a/frameworks/projects/MXRoyale/src/main/royale/mx/messaging/ChannelSet.as +++ b/frameworks/projects/MXRoyale/src/main/royale/mx/messaging/ChannelSet.a
[royale-asjs] branch feature/MXRoyale updated (1d20e3c -> bef6bc4)
This is an automated email from the ASF dual-hosted git repository. aharui pushed a change to branch feature/MXRoyale in repository https://gitbox.apache.org/repos/asf/royale-asjs.git. from 1d20e3c Update spark-royale-manifest.xml new c488c39 comment out resource bundles for now new 1fa3f4f don't need this manifest new bef6bc4 fix RichTextEditor The 3 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: frameworks/air-config-template.xml | 4 - frameworks/flex-config-template.xml| 4 - .../royale/mx/collections/ListCollectionView.as| 2 +- .../src/main/royale/mx/collections/Sort.as | 2 +- .../src/main/royale/mx/controls/ColorPicker.as | 2 +- .../src/main/royale/mx/controls/ComboBox.as| 98 ++- .../src/main/royale/mx/controls/RichTextEditor.as | 793 - .../main/royale/mx/controls/RichTextEditor.mxml| 116 +-- .../src/main/royale/mx/controls/TextArea.as| 2 + .../src/main/royale/mx/core/UITextField.as | 2 +- .../src/main/royale/mx/formatters/DateFormatter.as | 2 +- .../main/royale/mx/formatters/NumberFormatter.as | 4 +- .../src/main/royale/mx/messaging/ChannelSet.as | 4 +- .../royale/mx/messaging/channels/AMFChannel.as | 2 +- .../src/main/royale/mx/skins/RectangularBorder.as | 2 +- .../src/main/royale/mx/validators/DateValidator.as | 4 +- .../main/royale/mx/validators/NumberValidator.as | 2 +- .../royale/mx/validators/PhoneNumberValidator.as | 2 +- .../main/royale/mx/validators/RegExpValidator.as | 2 +- .../main/royale/mx/validators/StringValidator.as | 2 +- .../main/royale/spark/components/Application.as| 2 +- frameworks/royale-config-template.xml | 4 - 22 files changed, 181 insertions(+), 876 deletions(-) delete mode 100644 frameworks/projects/MXRoyale/src/main/royale/mx/controls/RichTextEditor.as
[royale-compiler] branch develop updated: try to get better error handling for a reported NPE
This is an automated email from the ASF dual-hosted git repository. aharui pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-compiler.git The following commit(s) were added to refs/heads/develop by this push: new 7cbe411 try to get better error handling for a reported NPE 7cbe411 is described below commit 7cbe411589369cf96fd5226225584aae8d1d5ddf Author: Alex Harui AuthorDate: Mon Aug 6 09:15:49 2018 -0700 try to get better error handling for a reported NPE --- .../compiler/internal/as/codegen/MXMLClassDirectiveProcessor.java| 5 + 1 file changed, 5 insertions(+) diff --git a/compiler/src/main/java/org/apache/royale/compiler/internal/as/codegen/MXMLClassDirectiveProcessor.java b/compiler/src/main/java/org/apache/royale/compiler/internal/as/codegen/MXMLClassDirectiveProcessor.java index 6f5fef9..9ad5f6d 100644 --- a/compiler/src/main/java/org/apache/royale/compiler/internal/as/codegen/MXMLClassDirectiveProcessor.java +++ b/compiler/src/main/java/org/apache/royale/compiler/internal/as/codegen/MXMLClassDirectiveProcessor.java @@ -159,6 +159,7 @@ import org.apache.royale.compiler.internal.tree.as.NodeBase; import org.apache.royale.compiler.internal.tree.as.VariableNode; import org.apache.royale.compiler.mxml.IMXMLLanguageConstants; import org.apache.royale.compiler.mxml.IMXMLTypeConstants; +import org.apache.royale.compiler.problems.AccessUndefinedPropertyProblem; import org.apache.royale.compiler.problems.CSSCodeGenProblem; import org.apache.royale.compiler.problems.ICompilerProblem; import org.apache.royale.compiler.problems.MXMLExecutableStatementsInScriptBlockProblem; @@ -3670,6 +3671,10 @@ public class MXMLClassDirectiveProcessor extends ClassDirectiveProcessor context.stopUsing(IL.PROPERTIES, 1); } +else if (propDef == null) +{ + getProblems().add(new AccessUndefinedPropertyProblem(propertyNode, propertyName)); +} else if (propDef.isPublic()) { context.startUsing(IL.PROPERTIES);
[royale-asjs] branch feature/MXRoyale updated: Update spark-royale-manifest.xml
This is an automated email from the ASF dual-hosted git repository. alinakazi pushed a commit to branch feature/MXRoyale in repository https://gitbox.apache.org/repos/asf/royale-asjs.git The following commit(s) were added to refs/heads/feature/MXRoyale by this push: new 1d20e3c Update spark-royale-manifest.xml 1d20e3c is described below commit 1d20e3cb764c92bfb3892edff09b11982e77ad01 Author: alinakazi AuthorDate: Mon Aug 6 17:01:33 2018 +0500 Update spark-royale-manifest.xml --- .../SparkRoyale/src/main/resources/spark-royale-manifest.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frameworks/projects/SparkRoyale/src/main/resources/spark-royale-manifest.xml b/frameworks/projects/SparkRoyale/src/main/resources/spark-royale-manifest.xml index 0e69f14..296b13a 100644 --- a/frameworks/projects/SparkRoyale/src/main/resources/spark-royale-manifest.xml +++ b/frameworks/projects/SparkRoyale/src/main/resources/spark-royale-manifest.xml @@ -69,8 +69,9 @@ - - + + +
[royale-asjs] branch feature/MXRoyale updated: Update LinearGradientStroke.as
This is an automated email from the ASF dual-hosted git repository. alinakazi pushed a commit to branch feature/MXRoyale in repository https://gitbox.apache.org/repos/asf/royale-asjs.git The following commit(s) were added to refs/heads/feature/MXRoyale by this push: new 307572a Update LinearGradientStroke.as 307572a is described below commit 307572ae095b4d557a83212023ebb0e0d7dc8bf2 Author: alinakazi AuthorDate: Mon Aug 6 16:57:01 2018 +0500 Update LinearGradientStroke.as --- .../royale/mx/graphics/LinearGradientStroke.as | 61 +++--- 1 file changed, 18 insertions(+), 43 deletions(-) diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/graphics/LinearGradientStroke.as b/frameworks/projects/MXRoyale/src/main/royale/mx/graphics/LinearGradientStroke.as index eddea72..3a59ff0 100644 --- a/frameworks/projects/MXRoyale/src/main/royale/mx/graphics/LinearGradientStroke.as +++ b/frameworks/projects/MXRoyale/src/main/royale/mx/graphics/LinearGradientStroke.as @@ -28,11 +28,11 @@ import flash.geom.Matrix; import flash.geom.Point; import flash.geom.Rectangle; */ -import org.apache.royale.graphics.GradientBase; +// import org.apache.royale.graphics.GradientBase; import mx.core.mx_internal; +import mx.graphics.SolidColorStroke; use namespace mx_internal; - /** * The LinearGradientStroke class lets you specify a gradient filled stroke. * You use the LinearGradientStroke class, along with the GradientEntry class, @@ -48,7 +48,7 @@ use namespace mx_internal; * @playerversion AIR 1.1 * @productversion Flex 3 */ -public class LinearGradientStroke extends GradientBase +public class LinearGradientStroke extends SolidColorStroke { /* extends GradientStroke */ //include "../core/Version.as"; @@ -132,45 +132,7 @@ public class LinearGradientStroke extends GradientBase } - //-- -// weight copied from GradientStroke -//-- - -/** - * @private - * Storage for the weight property. - */ -private var _weight:Number; - -[Bindable("propertyChange")] -[Inspectable(category="General", minValue="0.0")] - -/** - * The stroke weight, in pixels. - * - * @langversion 3.0 - * @playerversion Flash 9 - * @playerversion AIR 1.1 - * @productversion Flex 3 - */ -public function get weight():Number -{ -return _weight; -} - -/** - * @private - */ -public function set weight(value:Number):void -{ -var oldValue:Number = _weight; -if (value != oldValue) -{ -_weight = value; - - // dispatchGradientChangedEvent("weight", oldValue, value); -} -} + /** * @private @@ -182,7 +144,19 @@ public class LinearGradientStroke extends GradientBase // Properties // //-- - + + + +//-- +// rotation +//-- +public function get rotation():Number + { + return 0; + } +public function set rotation(value:Number):void + { + } //-- // matrix //-- @@ -387,6 +361,7 @@ public class LinearGradientStroke extends GradientBase matrix.translate(targetOrigin.x, targetOrigin.y); } } */ + }
[royale-asjs] branch feature/MXRoyale updated: Update Base64Encoder.as
This is an automated email from the ASF dual-hosted git repository. alinakazi pushed a commit to branch feature/MXRoyale in repository https://gitbox.apache.org/repos/asf/royale-asjs.git The following commit(s) were added to refs/heads/feature/MXRoyale by this push: new bce956b Update Base64Encoder.as bce956b is described below commit bce956b4c4ae26ce8e0dc76de56af396652571d5 Author: alinakazi AuthorDate: Mon Aug 6 15:42:38 2018 +0500 Update Base64Encoder.as --- frameworks/projects/MXRoyale/src/main/royale/mx/utils/Base64Encoder.as | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/utils/Base64Encoder.as b/frameworks/projects/MXRoyale/src/main/royale/mx/utils/Base64Encoder.as index cd8f032..8eb6c29 100644 --- a/frameworks/projects/MXRoyale/src/main/royale/mx/utils/Base64Encoder.as +++ b/frameworks/projects/MXRoyale/src/main/royale/mx/utils/Base64Encoder.as @@ -22,7 +22,7 @@ package mx.utils COMPILE::SWF { - import flash.utils.ByteArray; + import mx.utils.ByteArray; } COMPILE::JS
[royale-asjs] branch feature/MXRoyale updated: Update Base64Decoder.as
This is an automated email from the ASF dual-hosted git repository. alinakazi pushed a commit to branch feature/MXRoyale in repository https://gitbox.apache.org/repos/asf/royale-asjs.git The following commit(s) were added to refs/heads/feature/MXRoyale by this push: new 1490277 Update Base64Decoder.as 1490277 is described below commit 14902773d1692a52b0c12879c8056b3f17cfe51d Author: alinakazi AuthorDate: Mon Aug 6 15:42:17 2018 +0500 Update Base64Decoder.as --- .../projects/MXRoyale/src/main/royale/mx/utils/Base64Decoder.as | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/utils/Base64Decoder.as b/frameworks/projects/MXRoyale/src/main/royale/mx/utils/Base64Decoder.as index 0b346f8..ff512ad 100644 --- a/frameworks/projects/MXRoyale/src/main/royale/mx/utils/Base64Decoder.as +++ b/frameworks/projects/MXRoyale/src/main/royale/mx/utils/Base64Decoder.as @@ -22,7 +22,7 @@ package mx.utils COMPILE::SWF { -import flash.utils.ByteArray; +import mx.utils.ByteArray; } COMPILE::JS @@ -257,4 +257,4 @@ public class Base64Decoder ]; } -} \ No newline at end of file +}
[royale-asjs] branch feature/MXRoyale updated: Update mx-royale-manifest.xml
This is an automated email from the ASF dual-hosted git repository. alinakazi pushed a commit to branch feature/MXRoyale in repository https://gitbox.apache.org/repos/asf/royale-asjs.git The following commit(s) were added to refs/heads/feature/MXRoyale by this push: new 8a71469 Update mx-royale-manifest.xml 8a71469 is described below commit 8a714690a25e53117a500fc934ed2077a351f954 Author: alinakazi AuthorDate: Mon Aug 6 14:58:14 2018 +0500 Update mx-royale-manifest.xml --- frameworks/projects/MXRoyale/src/main/resources/mx-royale-manifest.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/frameworks/projects/MXRoyale/src/main/resources/mx-royale-manifest.xml b/frameworks/projects/MXRoyale/src/main/resources/mx-royale-manifest.xml index 67f7c05..05250f6 100644 --- a/frameworks/projects/MXRoyale/src/main/resources/mx-royale-manifest.xml +++ b/frameworks/projects/MXRoyale/src/main/resources/mx-royale-manifest.xml @@ -146,5 +146,6 @@ +
[royale-asjs] branch feature/MXRoyale updated: RichTextEditor.mxml Added
This is an automated email from the ASF dual-hosted git repository. alinakazi pushed a commit to branch feature/MXRoyale in repository https://gitbox.apache.org/repos/asf/royale-asjs.git The following commit(s) were added to refs/heads/feature/MXRoyale by this push: new ebaf942 RichTextEditor.mxml Added ebaf942 is described below commit ebaf94268e59ee796fd39bf1d5dbc240788737c8 Author: alinakazi AuthorDate: Mon Aug 6 14:56:50 2018 +0500 RichTextEditor.mxml Added --- .../main/royale/mx/controls/RichTextEditor.mxml| 1078 1 file changed, 1078 insertions(+) diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/RichTextEditor.mxml b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/RichTextEditor.mxml new file mode 100644 index 000..15b9a2c --- /dev/null +++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/RichTextEditor.mxml @@ -0,0 +1,1078 @@ + + + + + + http://www.adobe.com/2006/mxml"; xmlns="*" minWidth="220" minHeight="200" width="325" height="300"> + + + + + + +_sans +_serif +_typewriter +Arial +Courier +Courier New +Geneva +Georgia +Helvetica +Times New Roman +Times +Verdana + + + +8 +9 +10 +11 +12 +14 +16 +18 +20 +22 +24 +26 +28 +36 +48 +72 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
[royale-asjs] branch feature/MXRoyale updated: RichTextEditor.as added
This is an automated email from the ASF dual-hosted git repository. alinakazi pushed a commit to branch feature/MXRoyale in repository https://gitbox.apache.org/repos/asf/royale-asjs.git The following commit(s) were added to refs/heads/feature/MXRoyale by this push: new 0d0c9c5 RichTextEditor.as added 0d0c9c5 is described below commit 0d0c9c570877fe5ab4e6208da410673b7db97aba Author: alinakazi AuthorDate: Mon Aug 6 14:34:22 2018 +0500 RichTextEditor.as added --- .../src/main/royale/mx/controls/RichTextEditor.as | 793 + 1 file changed, 793 insertions(+) diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/RichTextEditor.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/RichTextEditor.as new file mode 100644 index 000..e4cce9e --- /dev/null +++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/RichTextEditor.as @@ -0,0 +1,793 @@ + +// +// Licensed to the Apache Software Foundation (ASF) under one or more +// contributor license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright ownership. +// The ASF licenses this file to You under the Apache License, Version 2.0 +// (the "License"); you may not use this file except in compliance with +// the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + + +package mx.controls +{ + /* import flash.events.Event; + import flash.events.FocusEvent; + import flash.events.KeyboardEvent; + import flash.events.MouseEvent; + import flash.text.engine.FontPosture; + import flash.text.engine.FontWeight; + import flash.ui.Keyboard; + import flash.utils.Dictionary; + + import mx.events.FlexEvent; + + import spark.components.richTextEditorClasses.AlignTool; + import spark.components.richTextEditorClasses.BoldTool; + import spark.components.richTextEditorClasses.BulletTool; + import spark.components.richTextEditorClasses.ColorTool; + import spark.components.richTextEditorClasses.FontTool; + import spark.components.richTextEditorClasses.ItalicTool; + import spark.components.richTextEditorClasses.LinkTool; + import spark.components.richTextEditorClasses.SizeTool; + import spark.components.richTextEditorClasses.UnderlineTool; + import spark.components.supportClasses.SkinnableComponent; + import spark.events.ColorChangeEvent; + import spark.events.IndexChangeEvent; + import spark.events.TextOperationEvent; + + import flashx.textLayout.conversion.ConversionType; + import flashx.textLayout.conversion.TextConverter; + import flashx.textLayout.edit.ElementRange; + import flashx.textLayout.edit.IEditManager; + import flashx.textLayout.edit.ISelectionManager; + import flashx.textLayout.edit.SelectionState; + import flashx.textLayout.elements.FlowGroupElement; + import flashx.textLayout.elements.FlowLeafElement; + import flashx.textLayout.elements.LinkElement; + import flashx.textLayout.elements.ListElement; + import flashx.textLayout.elements.ParagraphElement; + import flashx.textLayout.elements.TextFlow; + import flashx.textLayout.formats.TextAlign; + import flashx.textLayout.formats.TextDecoration; + import flashx.textLayout.formats.TextLayoutFormat; + */ + // for asdoc + /* [Experimental] + [Event(name = "change", type = "flash.events.Event")] + [Style(name = "borderColor", inherit = "no", type = "unit")] + [Style(name = "focusColor", inherit = "yes", type = "unit")] + */ + import mx.core.UIComponent; + public class RichTextEditor extends UIComponent + { + + /* + private var _htmlText:String; + private var _htmlTextChanged:Boolean = false; + private var _prompt:String = ""; + private var _stylesChanged:Dictionary = new Dictionary; + private var _text:String; + private var _textFlow:TextFlow; + private var _linkSelected:Boolean = false; + private var _urlRegExpression:RegExp = new RegExp("^(https?://(www\\.)?|www\\.)[-._~:/?#\\[\\]@!$&'()*+,;=a-z0-9]+$", 'i'); + private const _defaultLinkText:String = "http://";; + private var _linkEl:LinkElement +
[royale-asjs] branch feature/MXRoyale updated: Update MXRoyaleClasses.as
This is an automated email from the ASF dual-hosted git repository. alinakazi pushed a commit to branch feature/MXRoyale in repository https://gitbox.apache.org/repos/asf/royale-asjs.git The following commit(s) were added to refs/heads/feature/MXRoyale by this push: new 0ad8ab2 Update MXRoyaleClasses.as 0ad8ab2 is described below commit 0ad8ab26b6abc69871ec29b04818639181fec057 Author: alinakazi AuthorDate: Mon Aug 6 14:33:11 2018 +0500 Update MXRoyaleClasses.as --- frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as b/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as index 8995f2b..985f931 100644 --- a/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as +++ b/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as @@ -134,6 +134,8 @@ internal class MXRoyaleClasses import mx.external.ExternalInterface; ExternalInterface; import mx.events.KeyboardEvent; KeyboardEvent; import mx.geom.Matrix; Matrix; + import mx.utils.ByteArray; mx.utils.ByteArray; + import mx.controls.RichTextEditor; RichTextEditor; COMPILE::JS {
[royale-asjs] branch feature/MXRoyale updated: ByteArray.as Added
This is an automated email from the ASF dual-hosted git repository. alinakazi pushed a commit to branch feature/MXRoyale in repository https://gitbox.apache.org/repos/asf/royale-asjs.git The following commit(s) were added to refs/heads/feature/MXRoyale by this push: new 6ad0325 ByteArray.as Added 6ad0325 is described below commit 6ad0325d407add1de30de8e649e100ee5bbcf38f Author: alinakazi AuthorDate: Mon Aug 6 14:31:39 2018 +0500 ByteArray.as Added --- .../MXRoyale/src/main/royale/mx/utils/ByteArray.as | 62 ++ 1 file changed, 62 insertions(+) diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/utils/ByteArray.as b/frameworks/projects/MXRoyale/src/main/royale/mx/utils/ByteArray.as new file mode 100644 index 000..9427fa3 --- /dev/null +++ b/frameworks/projects/MXRoyale/src/main/royale/mx/utils/ByteArray.as @@ -0,0 +1,62 @@ + +// +// Licensed to the Apache Software Foundation (ASF) under one or more +// contributor license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright ownership. +// The ASF licenses this file to You under the Apache License, Version 2.0 +// (the "License"); you may not use this file except in compliance with +// the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + + +package mx.utils +{ +COMPILE::SWF{ + import flash.utils.ByteArray; +} +COMPILE::JS{ +import org.apache.royale.utils.BinaryData; +} +COMPILE::SWF{ + public class ByteArray extends flash.utils.ByteArray + { + public function ByteArray() + { + super(); + } + } +} + +COMPILE::JS{ + public class ByteArray extends org.apache.royale.utils.BinaryData + { + public function ByteArray() + { + super(); + } + public function readMultiByte(length:uint, charSet:String):String + { + return ""; + } + public function writeMultiByte(value:String, charSet:String):void + { + } + public function readObject():* +{ + return null; +} +public function writeObject(object:*):void +{ + } + } +} + +}
[royale-compiler] branch develop updated: Tests were broken for timezones to the east of GMT
This is an automated email from the ASF dual-hosted git repository. harbs pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-compiler.git The following commit(s) were added to refs/heads/develop by this push: new 743d1bb Tests were broken for timezones to the east of GMT 743d1bb is described below commit 743d1bba17bcefc5fea425aeca38c7c1288fdcd7 Author: Harbs AuthorDate: Mon Aug 6 11:21:18 2018 +0300 Tests were broken for timezones to the east of GMT --- compiler/src/test/java/as/ASDateTests.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compiler/src/test/java/as/ASDateTests.java b/compiler/src/test/java/as/ASDateTests.java index 4054b87..dbaec9e 100644 --- a/compiler/src/test/java/as/ASDateTests.java +++ b/compiler/src/test/java/as/ASDateTests.java @@ -36,6 +36,8 @@ public class ASDateTests extends ASFeatureTestsBase String offsetString = new Integer(tz.getOffset(new Date().getTime()) / 360).toString(); if (offsetString.length() == 2) offsetString = offsetString.substring(0,1) + 0 + offsetString.substring(1, 2); +if(offsetString.charAt(0) != '-') +offsetString = "+" + offsetString; offsetString = "GMT" + offsetString + "00"; if (!hasFlashPlayerGlobal) offsetString = "GMT-0800"; @@ -146,7 +148,7 @@ public class ASDateTests extends ASFeatureTestsBase }; String[] testCode = new String[] { -"var date : Date = new Date('Mon Dec 31 23:59:59 GMT-0800 2018');", +setTimeZone("var date : Date = new Date('Mon Dec 31 23:59:59 TZ 2018');"), "date.fullYear += 1;", "assertEqual('date.fullYear', date.fullYear, 2019);", };