Added statement chaining to specs
This commit is contained in:
parent
9f2d3e0540
commit
a4979fe851
Before Width: | Height: | Size: 781 B After Width: | Height: | Size: 781 B |
Before Width: | Height: | Size: 701 B After Width: | Height: | Size: 701 B |
163
jasmine.iws
163
jasmine.iws
|
@ -77,13 +77,31 @@
|
||||||
</component>
|
</component>
|
||||||
<component name="FileEditorManager">
|
<component name="FileEditorManager">
|
||||||
<leaf>
|
<leaf>
|
||||||
<file leaf-file-name="test.html" pinned="false" current="true" current-in-tab="true">
|
<file leaf-file-name="bootstrap.html" pinned="false" current="false" current-in-tab="false">
|
||||||
<entry file="file://$PROJECT_DIR$/test/test.html">
|
<entry file="file://$PROJECT_DIR$/test/bootstrap.html">
|
||||||
<provider editor-type-id="HtmlPreview">
|
<provider editor-type-id="HtmlPreview">
|
||||||
<state />
|
<state />
|
||||||
</provider>
|
</provider>
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state line="12" column="4" selection-start="481" selection-end="481" vertical-scroll-proportion="0.2389937">
|
<state line="19" column="20" selection-start="652" selection-end="652" vertical-scroll-proportion="0.37063655">
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
</file>
|
||||||
|
<file leaf-file-name="bootstrap.js" pinned="false" current="true" current-in-tab="true">
|
||||||
|
<entry file="file://$PROJECT_DIR$/test/bootstrap.js">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state line="171" column="38" selection-start="4839" selection-end="4839" vertical-scroll-proportion="0.7267498">
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
</file>
|
||||||
|
<file leaf-file-name="test.css" pinned="false" current="false" current-in-tab="false">
|
||||||
|
<entry file="file://$PROJECT_DIR$/test/test.css">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
|
||||||
<folding />
|
<folding />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
|
@ -92,25 +110,7 @@
|
||||||
<file leaf-file-name="jasmine.js" pinned="false" current="false" current-in-tab="false">
|
<file leaf-file-name="jasmine.js" pinned="false" current="false" current-in-tab="false">
|
||||||
<entry file="file://$PROJECT_DIR$/lib/jasmine.js">
|
<entry file="file://$PROJECT_DIR$/lib/jasmine.js">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state line="7" column="10" selection-start="95" selection-end="95" vertical-scroll-proportion="0.13000977">
|
<state line="80" column="6" selection-start="1900" selection-end="1900" vertical-scroll-proportion="0.27918288">
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
</file>
|
|
||||||
<file leaf-file-name="test.js" pinned="false" current="false" current-in-tab="false">
|
|
||||||
<entry file="file://$PROJECT_DIR$/test/test.js">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state line="66" column="6" selection-start="2025" selection-end="2025" vertical-scroll-proportion="0.69742066">
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
</file>
|
|
||||||
<file leaf-file-name="jspec.js" pinned="false" current="false" current-in-tab="false">
|
|
||||||
<entry file="file://$PROJECT_DIR$/jspec/lib/jspec.js">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state line="265" column="0" selection-start="6520" selection-end="6520" vertical-scroll-proportion="-0.8293651">
|
|
||||||
<folding />
|
<folding />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
|
@ -166,7 +166,7 @@
|
||||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
|
||||||
</PATH_ELEMENT>
|
</PATH_ELEMENT>
|
||||||
<PATH_ELEMENT>
|
<PATH_ELEMENT>
|
||||||
<option name="myItemId" value="PsiDirectory:/Users/pivotal/workspace/jasmine" />
|
<option name="myItemId" value="PsiDirectory:/Users/pivotal/Desktop/jasmine" />
|
||||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
</PATH_ELEMENT>
|
</PATH_ELEMENT>
|
||||||
</PATH>
|
</PATH>
|
||||||
|
@ -180,11 +180,11 @@
|
||||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
|
||||||
</PATH_ELEMENT>
|
</PATH_ELEMENT>
|
||||||
<PATH_ELEMENT>
|
<PATH_ELEMENT>
|
||||||
<option name="myItemId" value="PsiDirectory:/Users/pivotal/workspace/jasmine" />
|
<option name="myItemId" value="PsiDirectory:/Users/pivotal/Desktop/jasmine" />
|
||||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
</PATH_ELEMENT>
|
</PATH_ELEMENT>
|
||||||
<PATH_ELEMENT>
|
<PATH_ELEMENT>
|
||||||
<option name="myItemId" value="PsiDirectory:/Users/pivotal/workspace/jasmine/test" />
|
<option name="myItemId" value="PsiDirectory:/Users/pivotal/Desktop/jasmine/test" />
|
||||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
</PATH_ELEMENT>
|
</PATH_ELEMENT>
|
||||||
</PATH>
|
</PATH>
|
||||||
|
@ -198,11 +198,11 @@
|
||||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
|
||||||
</PATH_ELEMENT>
|
</PATH_ELEMENT>
|
||||||
<PATH_ELEMENT>
|
<PATH_ELEMENT>
|
||||||
<option name="myItemId" value="PsiDirectory:/Users/pivotal/workspace/jasmine" />
|
<option name="myItemId" value="PsiDirectory:/Users/pivotal/Desktop/jasmine" />
|
||||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
</PATH_ELEMENT>
|
</PATH_ELEMENT>
|
||||||
<PATH_ELEMENT>
|
<PATH_ELEMENT>
|
||||||
<option name="myItemId" value="PsiDirectory:/Users/pivotal/workspace/jasmine/lib" />
|
<option name="myItemId" value="PsiDirectory:/Users/pivotal/Desktop/jasmine/lib" />
|
||||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
</PATH_ELEMENT>
|
</PATH_ELEMENT>
|
||||||
</PATH>
|
</PATH>
|
||||||
|
@ -216,11 +216,11 @@
|
||||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
|
||||||
</PATH_ELEMENT>
|
</PATH_ELEMENT>
|
||||||
<PATH_ELEMENT>
|
<PATH_ELEMENT>
|
||||||
<option name="myItemId" value="PsiDirectory:/Users/pivotal/workspace/jasmine" />
|
<option name="myItemId" value="PsiDirectory:/Users/pivotal/Desktop/jasmine" />
|
||||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
</PATH_ELEMENT>
|
</PATH_ELEMENT>
|
||||||
<PATH_ELEMENT>
|
<PATH_ELEMENT>
|
||||||
<option name="myItemId" value="PsiDirectory:/Users/pivotal/workspace/jasmine/jspec" />
|
<option name="myItemId" value="PsiDirectory:/Users/pivotal/Desktop/jasmine/jspec" />
|
||||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
</PATH_ELEMENT>
|
</PATH_ELEMENT>
|
||||||
</PATH>
|
</PATH>
|
||||||
|
@ -234,15 +234,15 @@
|
||||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
|
||||||
</PATH_ELEMENT>
|
</PATH_ELEMENT>
|
||||||
<PATH_ELEMENT>
|
<PATH_ELEMENT>
|
||||||
<option name="myItemId" value="PsiDirectory:/Users/pivotal/workspace/jasmine" />
|
<option name="myItemId" value="PsiDirectory:/Users/pivotal/Desktop/jasmine" />
|
||||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
</PATH_ELEMENT>
|
</PATH_ELEMENT>
|
||||||
<PATH_ELEMENT>
|
<PATH_ELEMENT>
|
||||||
<option name="myItemId" value="PsiDirectory:/Users/pivotal/workspace/jasmine/jspec" />
|
<option name="myItemId" value="PsiDirectory:/Users/pivotal/Desktop/jasmine/jspec" />
|
||||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
</PATH_ELEMENT>
|
</PATH_ELEMENT>
|
||||||
<PATH_ELEMENT>
|
<PATH_ELEMENT>
|
||||||
<option name="myItemId" value="PsiDirectory:/Users/pivotal/workspace/jasmine/jspec/lib" />
|
<option name="myItemId" value="PsiDirectory:/Users/pivotal/Desktop/jasmine/jspec/lib" />
|
||||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
</PATH_ELEMENT>
|
</PATH_ELEMENT>
|
||||||
</PATH>
|
</PATH>
|
||||||
|
@ -266,6 +266,7 @@
|
||||||
</navigator>
|
</navigator>
|
||||||
</component>
|
</component>
|
||||||
<component name="PropertiesComponent">
|
<component name="PropertiesComponent">
|
||||||
|
<property name="GoToClass.includeJavaFiles" value="false" />
|
||||||
<property name="MemberChooser.copyJavadoc" value="false" />
|
<property name="MemberChooser.copyJavadoc" value="false" />
|
||||||
<property name="GoToClass.includeLibraries" value="false" />
|
<property name="GoToClass.includeLibraries" value="false" />
|
||||||
<property name="MemberChooser.showClasses" value="true" />
|
<property name="MemberChooser.showClasses" value="true" />
|
||||||
|
@ -297,19 +298,6 @@
|
||||||
</option>
|
</option>
|
||||||
<envs />
|
<envs />
|
||||||
</configuration>
|
</configuration>
|
||||||
<configuration default="true" type="Application" factoryName="Application" enabled="false" merge="false">
|
|
||||||
<option name="MAIN_CLASS_NAME" />
|
|
||||||
<option name="VM_PARAMETERS" />
|
|
||||||
<option name="PROGRAM_PARAMETERS" />
|
|
||||||
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
|
|
||||||
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
|
|
||||||
<option name="ALTERNATIVE_JRE_PATH" />
|
|
||||||
<option name="ENABLE_SWING_INSPECTOR" value="false" />
|
|
||||||
<option name="ENV_VARIABLES" />
|
|
||||||
<option name="PASS_PARENT_ENVS" value="true" />
|
|
||||||
<module name="" />
|
|
||||||
<envs />
|
|
||||||
</configuration>
|
|
||||||
<configuration default="true" type="RubyRunConfigurationType" factoryName="Ruby test">
|
<configuration default="true" type="RubyRunConfigurationType" factoryName="Ruby test">
|
||||||
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
||||||
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
||||||
|
@ -331,6 +319,19 @@
|
||||||
<option name="HOST" value="localhost" />
|
<option name="HOST" value="localhost" />
|
||||||
<option name="PORT" value="5005" />
|
<option name="PORT" value="5005" />
|
||||||
</configuration>
|
</configuration>
|
||||||
|
<configuration default="true" type="Application" factoryName="Application" enabled="false" merge="false">
|
||||||
|
<option name="MAIN_CLASS_NAME" />
|
||||||
|
<option name="VM_PARAMETERS" />
|
||||||
|
<option name="PROGRAM_PARAMETERS" />
|
||||||
|
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
|
||||||
|
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
|
||||||
|
<option name="ALTERNATIVE_JRE_PATH" />
|
||||||
|
<option name="ENABLE_SWING_INSPECTOR" value="false" />
|
||||||
|
<option name="ENV_VARIABLES" />
|
||||||
|
<option name="PASS_PARENT_ENVS" value="true" />
|
||||||
|
<module name="" />
|
||||||
|
<envs />
|
||||||
|
</configuration>
|
||||||
<configuration default="true" type="Applet" factoryName="Applet">
|
<configuration default="true" type="Applet" factoryName="Applet">
|
||||||
<module name="" />
|
<module name="" />
|
||||||
<option name="MAIN_CLASS_NAME" />
|
<option name="MAIN_CLASS_NAME" />
|
||||||
|
@ -394,33 +395,33 @@
|
||||||
</todo-panel>
|
</todo-panel>
|
||||||
</component>
|
</component>
|
||||||
<component name="ToolWindowManager">
|
<component name="ToolWindowManager">
|
||||||
<frame x="39" y="22" width="1412" height="1167" extended-state="0" />
|
<frame x="80" y="22" width="1661" height="1187" extended-state="0" />
|
||||||
<editor active="true" />
|
<editor active="true" />
|
||||||
<layout>
|
<layout>
|
||||||
<window_info id="UI Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="-1" />
|
<window_info id="UI Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="3" />
|
||||||
<window_info id="IDEtalk" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="-1" />
|
<window_info id="IDEtalk" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="3" />
|
||||||
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="7" />
|
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="7" />
|
||||||
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.25" order="0" />
|
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.21091811" order="0" />
|
||||||
<window_info id="RDoc" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="-1" />
|
<window_info id="RDoc" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="8" />
|
||||||
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="1" />
|
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="1" />
|
||||||
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" order="1" />
|
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" order="1" />
|
||||||
<window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="-1" />
|
<window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="8" />
|
||||||
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" order="6" />
|
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" order="6" />
|
||||||
<window_info id="Module Dependencies" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="-1" />
|
<window_info id="Module Dependencies" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="3" />
|
||||||
<window_info id="Dependency Viewer" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="-1" />
|
<window_info id="Dependency Viewer" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="8" />
|
||||||
<window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="-1" />
|
<window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="3" />
|
||||||
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" order="1" />
|
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" order="1" />
|
||||||
<window_info id="Maven projects" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="-1" />
|
<window_info id="Maven projects" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="3" />
|
||||||
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="-1" />
|
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="8" />
|
||||||
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="2" />
|
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="2" />
|
||||||
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" order="2" />
|
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" order="2" />
|
||||||
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" order="0" />
|
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" order="0" />
|
||||||
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" order="4" />
|
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" order="4" />
|
||||||
<window_info id="IDEtalk Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="-1" />
|
<window_info id="IDEtalk Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="8" />
|
||||||
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="-1" />
|
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="8" />
|
||||||
<window_info id="Duplicates" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="-1" />
|
<window_info id="Duplicates" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="8" />
|
||||||
<window_info id="Web" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" order="2" />
|
|
||||||
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="0" />
|
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="0" />
|
||||||
|
<window_info id="Web" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" order="2" />
|
||||||
<window_info id="EJB" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" order="3" />
|
<window_info id="EJB" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" order="3" />
|
||||||
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" order="5" />
|
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" order="5" />
|
||||||
</layout>
|
</layout>
|
||||||
|
@ -490,33 +491,57 @@
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/jspec/lib/jspec.js">
|
<entry file="file://$PROJECT_DIR$/test/test.html">
|
||||||
|
<provider editor-type-id="HtmlPreview">
|
||||||
|
<state />
|
||||||
|
</provider>
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state line="265" column="0" selection-start="6520" selection-end="6520" vertical-scroll-proportion="-0.8293651">
|
<state line="12" column="4" selection-start="492" selection-end="492" vertical-scroll-proportion="0.2389937">
|
||||||
<folding />
|
<folding />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/test/test.js">
|
<entry file="file://$PROJECT_DIR$/test/test.js">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state line="66" column="6" selection-start="2025" selection-end="2025" vertical-scroll-proportion="0.69742066">
|
<state line="66" column="6" selection-start="2216" selection-end="2216" vertical-scroll-proportion="0.018849207">
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/jspec/lib/jspec.js">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state line="265" column="0" selection-start="6520" selection-end="6520" vertical-scroll-proportion="0.018849207">
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/test/test.css">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/test/bootstrap.html">
|
||||||
|
<provider editor-type-id="HtmlPreview">
|
||||||
|
<state />
|
||||||
|
</provider>
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state line="19" column="20" selection-start="652" selection-end="652" vertical-scroll-proportion="0.37063655">
|
||||||
<folding />
|
<folding />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/lib/jasmine.js">
|
<entry file="file://$PROJECT_DIR$/lib/jasmine.js">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state line="7" column="10" selection-start="95" selection-end="95" vertical-scroll-proportion="0.13000977">
|
<state line="80" column="6" selection-start="1900" selection-end="1900" vertical-scroll-proportion="0.27918288">
|
||||||
<folding />
|
<folding />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/test/test.html">
|
<entry file="file://$PROJECT_DIR$/test/bootstrap.js">
|
||||||
<provider editor-type-id="HtmlPreview">
|
|
||||||
<state />
|
|
||||||
</provider>
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state line="12" column="4" selection-start="481" selection-end="481" vertical-scroll-proportion="0.2389937">
|
<state line="171" column="38" selection-start="4839" selection-end="4839" vertical-scroll-proportion="0.7267498">
|
||||||
<folding />
|
<folding />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
|
|
|
@ -10,9 +10,11 @@ if (typeof Object.create !== 'function') {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Klass.method instead of Klass.prototype.name = function
|
// Klass.method instead of Klass.prototype.name = function
|
||||||
Function.prototype.method = function (name, func) {
|
if (typeof Function.method !== 'function') {
|
||||||
this.prototype[name] = func;
|
Function.prototype.method = function (name, func) {
|
||||||
return this;
|
this.prototype[name] = func;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
|
@ -49,7 +51,7 @@ Matchers.method('should_not_equal', function (expected) {
|
||||||
});
|
});
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* expects helper method that allows for chaining Matcher
|
* expects_hat helper method that allows for chaining Matcher
|
||||||
*/
|
*/
|
||||||
var expects_that = function (actual) {
|
var expects_that = function (actual) {
|
||||||
return new Matchers(actual);
|
return new Matchers(actual);
|
||||||
|
@ -59,12 +61,45 @@ var expects_that = function (actual) {
|
||||||
* Jasmine spec constructor
|
* Jasmine spec constructor
|
||||||
*/
|
*/
|
||||||
var it = function (description, func) {
|
var it = function (description, func) {
|
||||||
return {
|
var that = {
|
||||||
description: description,
|
description: description,
|
||||||
execute: func
|
func: func,
|
||||||
|
done: false,
|
||||||
|
execute: function() {
|
||||||
|
that.func.apply(that);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
return that;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var it_async = function (description) {
|
||||||
|
var that = {
|
||||||
|
description: description,
|
||||||
|
queue: [],
|
||||||
|
waits: function (timeout) {
|
||||||
|
return that;
|
||||||
|
},
|
||||||
|
done: false,
|
||||||
|
execute: function () {
|
||||||
|
for(i = 0; i < that.queue.length; i++) {
|
||||||
|
that.queue[i]();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
var addToQueue = function(func) {
|
||||||
|
that.queue.push(func);
|
||||||
|
return that;
|
||||||
|
}
|
||||||
|
|
||||||
|
that.runs = addToQueue;
|
||||||
|
that.then = addToQueue;
|
||||||
|
|
||||||
|
return that;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Jasmine constructor
|
* Jasmine constructor
|
||||||
*/
|
*/
|
||||||
|
@ -79,21 +114,27 @@ var jasmine_init = function () {
|
||||||
*/
|
*/
|
||||||
var Jasmine = jasmine_init();
|
var Jasmine = jasmine_init();
|
||||||
|
|
||||||
// spec: {
|
/*
|
||||||
// description: description,
|
* TODO:
|
||||||
// func: func,
|
* - add spec or description to results
|
||||||
// execute: function() {with(jasmine) {func();}}
|
* - spec.execute needs to wait until the spec is done
|
||||||
// },
|
* - an async test will be killed after X ms if not done and then listed as failed with an "async fail" message of some sort
|
||||||
//
|
* - Suite to run tests in order, constructed with a function called describe
|
||||||
// expects_that: function(actual) {
|
* - Suite supports before
|
||||||
//
|
* - Suite supports after
|
||||||
// this.actual = actual;
|
* - Suite supports before_each
|
||||||
// return this;
|
* - Suite supports after_each
|
||||||
// },
|
* - Suite supports asynch
|
||||||
//
|
* - Runner that runs suites in order
|
||||||
// }
|
* - Runner supports async
|
||||||
//}
|
* - HTML reporter
|
||||||
//
|
* - Shows pass/fail progress (just like bootstrap reporter)
|
||||||
//var JasmineSpec = function(description, func) {
|
* - Lists a Summary: total # specs, # of passed, # of failed
|
||||||
//
|
* - Failed reports lists all specs that failed and what the failure was
|
||||||
//}
|
* - Failed output is styled with red
|
||||||
|
* - JSON reporter
|
||||||
|
* - Lists full results as a JSON object/string
|
||||||
|
* - Luna reporter
|
||||||
|
* - each result calls back into widgets for rendering to Luna views
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
|
@ -19,8 +19,8 @@
|
||||||
<div id="results_summary" style="display:none;">
|
<div id="results_summary" style="display:none;">
|
||||||
<h2>Summary</h2>
|
<h2>Summary</h2>
|
||||||
</div>
|
</div>
|
||||||
<div id="fails">
|
<div id="fails" style="display:none;">
|
||||||
<h2 id="fails_header" style="display:none;">Failure Messages</h2>
|
<h2 id="fails_header">Failure Messages</h2>
|
||||||
<div id="fail_messages"></div>
|
<div id="fail_messages"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -16,25 +16,26 @@ var reporter = function () {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
fails++;
|
fails++;
|
||||||
var failsHeader = $('fails_header');
|
var fails_report = $('fails');
|
||||||
failsHeader.show();
|
fails_report.show();
|
||||||
|
|
||||||
iconElement = $('icons');
|
iconElement = $('icons');
|
||||||
iconElement.appendChild(new Element('img', {src: '../images/exclamation.png'}));
|
iconElement.appendChild(new Element('img', {src: '../images/exclamation.png'}));
|
||||||
|
|
||||||
var failMessages = $('fail_messages');
|
var failMessages = $('fail_messages');
|
||||||
var newFail = new Element('p', {class: 'fail'});
|
var newFail = new Element('p', {'class': 'fail'});
|
||||||
newFail.innerHTML = message;
|
newFail.innerHTML = message;
|
||||||
failMessages.appendChild(newFail);
|
failMessages.appendChild(newFail);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
summary: function () {
|
summary: function () {
|
||||||
summary = new Element('p', {class: ((fails > 0) ? 'fail_in_summary' : '') });
|
summary = new Element('p', {'class': ((fails > 0) ? 'fail_in_summary' : '') });
|
||||||
summary.innerHTML = total + ' tests, ' + passes + ' passing, ' + fails + ' failed.';
|
summary.innerHTML = total + ' tests, ' + passes + ' passing, ' + fails + ' failed.';
|
||||||
var summaryElement = $('results_summary');
|
|
||||||
summaryElement.appendChild(summary);
|
var summaryElement = $('results_summary');
|
||||||
summaryElement.show();
|
summaryElement.appendChild(summary);
|
||||||
|
summaryElement.show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return that;
|
return that;
|
||||||
|
@ -42,18 +43,17 @@ var reporter = function () {
|
||||||
|
|
||||||
var testMatchersComparisons = function () {
|
var testMatchersComparisons = function () {
|
||||||
Jasmine = jasmine_init();
|
Jasmine = jasmine_init();
|
||||||
|
|
||||||
reporter.test(expects_that(true).should_equal(true),
|
reporter.test(expects_that(true).should_equal(true),
|
||||||
'expects_that(true).should_equal(true) returned false');
|
'expects_that(true).should_equal(true) returned false');
|
||||||
|
|
||||||
reporter.test(!(expects_that(false).should_equal(true)),
|
reporter.test(!(expects_that(false).should_equal(true)),
|
||||||
'expects_that(true).should_equal(true) returned true');
|
'expects_that(true).should_equal(true) returned true');
|
||||||
|
|
||||||
reporter.test(expects_that(true).should_not_equal(false),
|
reporter.test(expects_that(true).should_not_equal(false),
|
||||||
'expects_that(true).should_not_equal(false) retruned false');
|
'expects_that(true).should_not_equal(false) retruned false');
|
||||||
|
|
||||||
reporter.test(!(expects_that(true).should_not_equal(true)),
|
reporter.test(!(expects_that(true).should_not_equal(true)),
|
||||||
'expects_that(true).should_not_equal(false) retruned true');
|
'expects_that(true).should_not_equal(false) retruned true');
|
||||||
}
|
}
|
||||||
|
|
||||||
var testMatchersReporting = function () {
|
var testMatchersReporting = function () {
|
||||||
|
@ -63,46 +63,47 @@ var testMatchersReporting = function () {
|
||||||
expects_that(false).should_equal(true);
|
expects_that(false).should_equal(true);
|
||||||
|
|
||||||
reporter.test((Jasmine.results.length == 2),
|
reporter.test((Jasmine.results.length == 2),
|
||||||
"Jasmine results array doesn't have 2 results");
|
"Jasmine results array doesn't have 2 results");
|
||||||
|
|
||||||
reporter.test((Jasmine.results[0].passed == true),
|
reporter.test((Jasmine.results[0].passed == true),
|
||||||
"First spec didn't pass");
|
"First spec didn't pass");
|
||||||
|
|
||||||
reporter.test((Jasmine.results[1].passed == false),
|
reporter.test((Jasmine.results[1].passed == false),
|
||||||
"Second spec did pass");
|
"Second spec did pass");
|
||||||
|
|
||||||
Jasmine = jasmine_init();
|
Jasmine = jasmine_init();
|
||||||
|
|
||||||
expects_that(false).should_equal(true);
|
expects_that(false).should_equal(true);
|
||||||
|
|
||||||
reporter.test((Jasmine.results[0].message == 'Expected true but got false.'),
|
reporter.test((Jasmine.results[0].message == 'Expected true but got false.'),
|
||||||
"Failed expectation didn't test the failure message");
|
"Failed expectation didn't test the failure message");
|
||||||
|
|
||||||
Jasmine = jasmine_init();
|
Jasmine = jasmine_init();
|
||||||
|
|
||||||
expects_that(true).should_equal(true);
|
expects_that(true).should_equal(true);
|
||||||
|
|
||||||
reporter.test((Jasmine.results[0].message == 'Passed.'),
|
reporter.test((Jasmine.results[0].message == 'Passed.'),
|
||||||
"Passing expectation didn't test the passing message");
|
"Passing expectation didn't test the passing message");
|
||||||
}
|
}
|
||||||
|
|
||||||
var testSpecs = function () {
|
var testSpecs = function () {
|
||||||
Jasmine = jasmine_init();
|
Jasmine = jasmine_init();
|
||||||
var spec = it('new spec');
|
var spec = it('new spec');
|
||||||
reporter.test((spec.description == 'new spec'),
|
reporter.test((spec.description == 'new spec'),
|
||||||
"Spec did not have a description");
|
"Spec did not have a description");
|
||||||
|
|
||||||
Jasmine = jasmine_init();
|
Jasmine = jasmine_init();
|
||||||
var another_spec = it('another spec', function () {
|
var another_spec = it('spec with an expectation', function () {
|
||||||
var foo = 'bar';
|
var foo = 'bar';
|
||||||
expects_that(foo).should_equal('bar');
|
expects_that(foo).should_equal('bar');
|
||||||
});
|
});
|
||||||
another_spec.execute();
|
another_spec.execute();
|
||||||
|
another_spec.done = true;
|
||||||
|
|
||||||
reporter.test((Jasmine.results.length == 1),
|
reporter.test((Jasmine.results.length == 1),
|
||||||
"Results aren't there after a spec was executed");
|
"Results aren't there after a spec was executed");
|
||||||
reporter.test((Jasmine.results[0].passed == true),
|
reporter.test((Jasmine.results[0].passed == true),
|
||||||
"Results has a result, but it's true");
|
"Results has a result, but it's true");
|
||||||
|
|
||||||
Jasmine = jasmine_init();
|
Jasmine = jasmine_init();
|
||||||
var yet_another_spec = it('spec with failing expectation', function () {
|
var yet_another_spec = it('spec with failing expectation', function () {
|
||||||
|
@ -110,9 +111,10 @@ var testSpecs = function () {
|
||||||
expects_that(foo).should_equal('baz');
|
expects_that(foo).should_equal('baz');
|
||||||
});
|
});
|
||||||
yet_another_spec.execute();
|
yet_another_spec.execute();
|
||||||
|
another_spec.done = true;
|
||||||
|
|
||||||
reporter.test((Jasmine.results[0].passed == false),
|
reporter.test((Jasmine.results[0].passed == false),
|
||||||
"Expectation that failed, passed");
|
"Expectation that failed, passed");
|
||||||
|
|
||||||
Jasmine = jasmine_init();
|
Jasmine = jasmine_init();
|
||||||
var yet_yet_another_spec = it('spec with multiple assertions', function () {
|
var yet_yet_another_spec = it('spec with multiple assertions', function () {
|
||||||
|
@ -123,18 +125,76 @@ var testSpecs = function () {
|
||||||
expects_that(baz).should_equal('quux');
|
expects_that(baz).should_equal('quux');
|
||||||
});
|
});
|
||||||
yet_yet_another_spec.execute();
|
yet_yet_another_spec.execute();
|
||||||
|
another_spec.done = true;
|
||||||
|
|
||||||
reporter.test((Jasmine.results.length == 2),
|
reporter.test((Jasmine.results.length == 2),
|
||||||
"Spec doesn't support multiple expectations");
|
"Spec doesn't support multiple expectations");
|
||||||
|
}
|
||||||
|
|
||||||
|
var testAsyncSpecs = function () {
|
||||||
|
Jasmine = jasmine_init();
|
||||||
|
var foo = 0;
|
||||||
|
|
||||||
|
var a_spec = it_async('simple queue test').
|
||||||
|
runs(function () {
|
||||||
|
foo++;
|
||||||
|
}).then(function() {
|
||||||
|
expects_that(foo).should_equal(1)
|
||||||
|
});
|
||||||
|
|
||||||
|
reporter.test(a_spec.queue.length === 2,
|
||||||
|
'Spec queue length is not 2');
|
||||||
|
|
||||||
|
Jasmine = jasmine_init();
|
||||||
|
foo = 0;
|
||||||
|
a_spec = it_async('spec w/ queued statments').
|
||||||
|
runs(function () {
|
||||||
|
foo++;
|
||||||
|
}).then(function() {
|
||||||
|
expects_that(foo).should_equal(1)
|
||||||
|
});
|
||||||
|
|
||||||
|
a_spec.execute();
|
||||||
|
|
||||||
|
reporter.test((Jasmine.results.length === 1),
|
||||||
|
'Spec queue did not run all functions');
|
||||||
|
reporter.test((Jasmine.results[0].passed === true),
|
||||||
|
'Queued expectation failed');
|
||||||
|
|
||||||
|
Jasmine = jasmine_init();
|
||||||
|
foo = 0;
|
||||||
|
a_spec = it_async('spec w/ queued statments').
|
||||||
|
runs(function () {
|
||||||
|
setTimeout(function() {
|
||||||
|
foo++
|
||||||
|
}, 500);
|
||||||
|
}).waits(1000).then(function() {
|
||||||
|
expects_that(foo).should_equal(1);
|
||||||
|
});
|
||||||
|
|
||||||
|
a_spec.execute();
|
||||||
|
|
||||||
|
reporter.test((Jasmine.results.length === 1),
|
||||||
|
'Spec queue did not run all functions');
|
||||||
|
|
||||||
|
reporter.test((Jasmine.results[0].passed === true),
|
||||||
|
'Queued expectation failed');
|
||||||
}
|
}
|
||||||
|
|
||||||
var runTests = function () {
|
var runTests = function () {
|
||||||
$('spinner').show();
|
$('spinner').show();
|
||||||
|
|
||||||
testMatchersComparisons();
|
// testMatchersComparisons();
|
||||||
testMatchersReporting();
|
// testMatchersReporting();
|
||||||
testSpecs();
|
// testSpecs();
|
||||||
|
|
||||||
|
testAsyncSpecs();
|
||||||
$('spinner').hide();
|
$('spinner').hide();
|
||||||
reporter.summary();
|
reporter.summary();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//it('should be an async test') {
|
||||||
|
// run(function() {setup}).and.wait(2000).then.expects_that(true).should_equal(true).and.expects_that
|
||||||
|
//}
|
||||||
|
|
||||||
|
|
||||||
|
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Loading…
Reference in New Issue