Permalink
Browse files

Added jasmine/phantom test framework

  • Loading branch information...
1 parent fae7622 commit a79f47500254937acbc14d357c75f8d327b2e2a4 Jon Curtis committed Sep 25, 2012
Showing with 2,847 additions and 121 deletions.
  1. +128 −121 Durandal.csproj
  2. +2,529 −0 test/jasmine-1.2.0.js
  3. +103 −0 test/jasmine.console_reporter.js
  4. BIN test/phantomjs.exe
  5. +27 −0 test/spec.html
  6. +16 −0 test/spec.js
  7. +44 −0 test/specs/system.spec.js
View
@@ -1,127 +1,134 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>
- </ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{3EA32849-C308-4046-BA8A-9C7D23F7D28D}</ProjectGuid>
- <ProjectTypeGuids>{E53F8FEA-EAE0-44A6-8774-FFD645390401};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>Durandal</RootNamespace>
- <AssemblyName>Durandal</AssemblyName>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
- <MvcBuildViews>false</MvcBuildViews>
- <UseIISExpress>false</UseIISExpress>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\</OutputPath>
- <DefineConstants>DEBUG;TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>bin\</OutputPath>
- <DefineConstants>TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
- <Reference Include="System.Web.WebPages" />
- <Reference Include="System.Web.Helpers" />
- <Reference Include="Microsoft.CSharp" />
- <Reference Include="System" />
- <Reference Include="System.Data" />
- <Reference Include="System.Drawing" />
- <Reference Include="System.Web.DynamicData" />
- <Reference Include="System.Web.Entity" />
- <Reference Include="System.Web.ApplicationServices" />
- <Reference Include="System.ComponentModel.DataAnnotations" />
- <Reference Include="System.Core" />
- <Reference Include="System.Data.DataSetExtensions" />
- <Reference Include="System.Xml.Linq" />
- <Reference Include="System.Web" />
- <Reference Include="System.Web.Extensions" />
- <Reference Include="System.Web.Abstractions" />
- <Reference Include="System.Web.Routing" />
- <Reference Include="System.Xml" />
- <Reference Include="System.Configuration" />
- <Reference Include="System.Web.Services" />
- <Reference Include="System.EnterpriseServices" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="Properties\AssemblyInfo.cs" />
- </ItemGroup>
- <ItemGroup>
- <Content Include="app\app.build.js" />
- <Content Include="app\content\images\icon.png" />
- <Content Include="app\content\images\ios-startup-image-landscape.png" />
- <Content Include="app\content\images\ios-startup-image-portrait.png" />
- <Content Include="app\durandal\app.js" />
- <Content Include="app\durandal\composition.js" />
- <Content Include="app\durandal\dom.js" />
- <Content Include="app\durandal\events.js" />
- <Content Include="app\durandal\http.js" />
- <Content Include="app\durandal\messageBox.html" />
- <Content Include="app\durandal\messageBox.js" />
- <Content Include="app\durandal\modal.js" />
- <Content Include="app\durandal\system.js" />
- <Content Include="app\durandal\viewEngine.js" />
- <Content Include="app\durandal\viewLocator.js" />
- <Content Include="app\durandal\viewModelBinder.js" />
- <Content Include="app\lib\jquery-1.7.min.js" />
- <Content Include="app\lib\knockout-2.1.0.js" />
- <Content Include="app\lib\require.js" />
- <Content Include="app\lib\text.js" />
- <Content Include="app\main.js" />
- <Content Include="app\r.js" />
- <Content Include="app\samples\navigation\first.html" />
- <Content Include="app\samples\navigation\first.js" />
- <Content Include="app\samples\navigation\second.html" />
- <Content Include="app\samples\navigation\second.js" />
- <Content Include="app\samples\navigation\shell.html" />
- <Content Include="app\samples\navigation\shell.js" />
- <Content Include="index.html" />
- </ItemGroup>
- <ItemGroup>
- <Folder Include="app\content\css\" />
- </ItemGroup>
- <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
- <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>
+ </ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{3EA32849-C308-4046-BA8A-9C7D23F7D28D}</ProjectGuid>
+ <ProjectTypeGuids>{E53F8FEA-EAE0-44A6-8774-FFD645390401};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Durandal</RootNamespace>
+ <AssemblyName>Durandal</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <MvcBuildViews>false</MvcBuildViews>
+ <UseIISExpress>false</UseIISExpress>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
+ <Reference Include="System.Web.WebPages" />
+ <Reference Include="System.Web.Helpers" />
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Drawing" />
+ <Reference Include="System.Web.DynamicData" />
+ <Reference Include="System.Web.Entity" />
+ <Reference Include="System.Web.ApplicationServices" />
+ <Reference Include="System.ComponentModel.DataAnnotations" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Web" />
+ <Reference Include="System.Web.Extensions" />
+ <Reference Include="System.Web.Abstractions" />
+ <Reference Include="System.Web.Routing" />
+ <Reference Include="System.Xml" />
+ <Reference Include="System.Configuration" />
+ <Reference Include="System.Web.Services" />
+ <Reference Include="System.EnterpriseServices" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="app\app.build.js" />
+ <Content Include="app\content\images\icon.png" />
+ <Content Include="app\content\images\ios-startup-image-landscape.png" />
+ <Content Include="app\content\images\ios-startup-image-portrait.png" />
+ <Content Include="app\durandal\app.js" />
+ <Content Include="app\durandal\composition.js" />
+ <Content Include="app\durandal\dom.js" />
+ <Content Include="app\durandal\events.js" />
+ <Content Include="app\durandal\http.js" />
+ <Content Include="app\durandal\messageBox.html" />
+ <Content Include="app\durandal\messageBox.js" />
+ <Content Include="app\durandal\modal.js" />
+ <Content Include="app\durandal\system.js" />
+ <Content Include="app\durandal\viewEngine.js" />
+ <Content Include="app\durandal\viewLocator.js" />
+ <Content Include="app\durandal\viewModelBinder.js" />
+ <Content Include="app\lib\jquery-1.7.min.js" />
+ <Content Include="app\lib\knockout-2.1.0.js" />
+ <Content Include="app\lib\require.js" />
+ <Content Include="app\lib\text.js" />
+ <Content Include="app\main.js" />
+ <Content Include="app\r.js" />
+ <Content Include="app\samples\navigation\first.html" />
+ <Content Include="app\samples\navigation\first.js" />
+ <Content Include="app\samples\navigation\second.html" />
+ <Content Include="app\samples\navigation\second.js" />
+ <Content Include="app\samples\navigation\shell.html" />
+ <Content Include="app\samples\navigation\shell.js" />
+ <Content Include="index.html" />
+ <Content Include="test\spec.js" />
+ <Content Include="test\jasmine.console_reporter.js" />
+ <Content Include="test\jasmine-1.2.0.js" />
+ <Content Include="test\phantomjs.exe" />
+ <Content Include="test\spec.html" />
+ <Content Include="test\spec2.js" />
+ <Content Include="test\specs\system.spec.js" />
+ </ItemGroup>
+ <ItemGroup>
+ <Folder Include="app\content\css\" />
+ </ItemGroup>
+ <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+ <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
- </Target> -->
- <Target Name="MvcBuildViews" AfterTargets="AfterBuild" Condition="'$(MvcBuildViews)'=='true'">
- <AspNetCompiler VirtualPath="temp" PhysicalPath="$(WebProjectOutputDir)" />
- </Target>
- <ProjectExtensions>
- <VisualStudio>
- <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
- <WebProjectProperties>
- <UseIIS>False</UseIIS>
- <AutoAssignPort>True</AutoAssignPort>
- <DevelopmentServerPort>38920</DevelopmentServerPort>
- <DevelopmentServerVPath>/</DevelopmentServerVPath>
- <IISUrl>
- </IISUrl>
- <NTLMAuthentication>False</NTLMAuthentication>
- <UseCustomServer>False</UseCustomServer>
- <CustomServerUrl>
- </CustomServerUrl>
- <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
- </WebProjectProperties>
- </FlavorProperties>
- </VisualStudio>
- </ProjectExtensions>
+ </Target> -->
+ <Target Name="MvcBuildViews" AfterTargets="AfterBuild" Condition="'$(MvcBuildViews)'=='true'">
+ <AspNetCompiler VirtualPath="temp" PhysicalPath="$(WebProjectOutputDir)" />
+ </Target>
+ <ProjectExtensions>
+ <VisualStudio>
+ <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
+ <WebProjectProperties>
+ <UseIIS>False</UseIIS>
+ <AutoAssignPort>True</AutoAssignPort>
+ <DevelopmentServerPort>38920</DevelopmentServerPort>
+ <DevelopmentServerVPath>/</DevelopmentServerVPath>
+ <IISUrl>
+ </IISUrl>
+ <NTLMAuthentication>False</NTLMAuthentication>
+ <UseCustomServer>False</UseCustomServer>
+ <CustomServerUrl>
+ </CustomServerUrl>
+ <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
+ </WebProjectProperties>
+ </FlavorProperties>
+ </VisualStudio>
+ </ProjectExtensions>
</Project>
Oops, something went wrong.

0 comments on commit a79f475

Please sign in to comment.