Skip to content

Commit

Permalink
Integrated the custom fx test suite into the main test suite. All tes…
Browse files Browse the repository at this point in the history
…ts are now run automatically. Removed the old suite, as it was no longer needed.
  • Loading branch information
jeresig committed Jul 29, 2007
1 parent e6c0678 commit 80a149b
Show file tree
Hide file tree
Showing 9 changed files with 403 additions and 373 deletions.
2 changes: 0 additions & 2 deletions Makefile
Expand Up @@ -118,8 +118,6 @@ test: ${JQ}
@@echo " - Copying over script files." @@echo " - Copying over script files."
@@cp -fR ${BUILD_DIR}/test/data ${TEST_DIR}/data @@cp -fR ${BUILD_DIR}/test/data ${TEST_DIR}/data
@@cp -f ${BUILD_DIR}/test/index.html ${TEST_DIR} @@cp -f ${BUILD_DIR}/test/index.html ${TEST_DIR}
@@cp -f ${BUILD_DIR}/test/fx.html ${TEST_DIR}
@@cp -f ${BUILD_DIR}/test/cow.jpg ${TEST_DIR}


@@echo " - Compiling Test Cases" @@echo " - Compiling Test Cases"
@@${JAR} ${BUILD_DIR}/test/test.js ${JQ} ${TEST_DIR} @@${JAR} ${BUILD_DIR}/test/test.js ${JQ} ${TEST_DIR}
Expand Down
2 changes: 0 additions & 2 deletions build.xml
Expand Up @@ -110,8 +110,6 @@
<fileset dir="${BUILD_DIR}/test/data/" /> <fileset dir="${BUILD_DIR}/test/data/" />
</copy> </copy>
<copy todir="${TEST_DIR}" file="${BUILD_DIR}/test/index.html" /> <copy todir="${TEST_DIR}" file="${BUILD_DIR}/test/index.html" />
<copy todir="${TEST_DIR}" file="${BUILD_DIR}/test/fx.html" />
<copy todir="${TEST_DIR}" file="${BUILD_DIR}/test/cow.jpg" />
<echo message="Test Suite built." /> <echo message="Test Suite built." />
</target> </target>


Expand Down
File renamed without changes
103 changes: 102 additions & 1 deletion build/test/data/testsuite.css
Expand Up @@ -9,4 +9,105 @@ p.result { margin-left: 1em; }


#banner { height: 2em; border-bottom: 1px solid white; } #banner { height: 2em; border-bottom: 1px solid white; }
h2.pass { background-color: green; } h2.pass { background-color: green; }
h2.fail { background-color: red; } h2.fail { background-color: red; }

div#fx-tests h4 {
background: red;
}

div#fx-tests h4.pass {
background: green;
}

div#fx-tests div.box {
background: red url(data/cow.jpg) no-repeat;
overflow: hidden;
border: 2px solid #000;
}

div#fx-tests div.overflow {
overflow: visible;
}

div.inline {
display: inline;
}

div.autoheight {
height: auto;
}

div.autowidth {
width: auto;
}

div.autoopacity {
opacity: auto;
}

div.largewidth {
width: 100px;
}

div.largeheight {
height: 100px;
}

div.largeopacity {
filter: progid:DXImageTransform.Microsoft.Alpha(opacity=100);
}

div.medwidth {
width: 50px;
}

div.medheight {
height: 50px;
}

div.medopacity {
opacity: 0.5;
filter: progid:DXImageTransform.Microsoft.Alpha(opacity=50);
}

div.nowidth {
width: 0px;
}

div.noheight {
height: 0px;
}

div.noopacity {
opacity: 0;
filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0);
}

div.hidden {
display: none;
}

div#fx-tests div.widewidth {
background-repeat: repeat-x;
}

div#fx-tests div.wideheight {
background-repeat: repeat-y;
}

div#fx-tests div.widewidth.wideheight {
background-repeat: repeat;
}

div#fx-tests div.noback {
background-image: none;
}

div.chain, div.chain div { width: 100px; height: 20px; position: relative; float: left; }
div.chain div { position: absolute; top: 0px; left: 0px; }

div.chain.test { background: red; }
div.chain.test div { background: green; }

div.chain.out { background: green; }
div.chain.out div { background: red; display: none; }

0 comments on commit 80a149b

Please sign in to comment.