Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-33689

Flex Library project unit tests creates invalid FlexUnitApplication.mxml

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Apache Flex 4.10.0
    • None
    • None
    • windows 7

    Description

      reproduce:
      1. create Flex Library project (generic library, Flex 4.10.0 + AIR 3.8 SDK, exclude AIR libraries)
      2. right click project, new, Test Case Class
      3. create a simple [Test] function inside
      4. right click project, Execute FlexUnit Tests
      5. compilation fails with
      Encountered errors or warnings while building project FlexUnitApplication.mxml.
      FlexUnitApplication.mxml: Initializer for 'layout': values of type spark.layouts.supportClasses.LayoutBase cannot be represented in text.

      automaticaly created FlexUnitApplication.mxml file contains:
      <?xml version="1.0" encoding="utf-8"?>

      <!-- This is an auto generated file and is not intended for modification. -->

      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:mx="library://ns.adobe.com/flex/mx"
      xmlns:flexui="flexunit.flexui.*"
      minWidth="955" minHeight="600" creationComplete="onCreationComplete()"
      layout="absolute">
      <fx:Script>
      <![CDATA[
      import flexUnitTests.TC1;

      public function currentRunTestSuite():Array

      { var testsToRun:Array = new Array(); testsToRun.push(flexUnitTests.TC1); return testsToRun; }

      private function onCreationComplete():void

      { testRunner.runWithFlexUnit4Runner(currentRunTestSuite(), "ViewDesktop"); }

      ]]>
      </fx:Script>
      <flexui:FlexUnitTestRunnerUI id="testRunner" portNumber="8765">
      </flexui:FlexUnitTestRunnerUI>

      </s:Application>

      Attachments

        Activity

          People

            aharui Alex Harui
            jozefchutka Jozef Chutka
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: