Skip to content

Commit

Permalink
FLUID-4927: Fixed the failing tests in IE9 and added all-tests.html f…
Browse files Browse the repository at this point in the history
…or running all uiOptions unit tests at one shot.
  • Loading branch information
cindyli committed Apr 5, 2013
1 parent dfc1d15 commit a2af7fd
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 2 deletions.
37 changes: 37 additions & 0 deletions src/webapp/tests/component-tests/uiOptions/all-tests.html
@@ -0,0 +1,37 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>UI Options complete tests runner</title>

<link rel="stylesheet" href="../../lib/qunit/css/qunit.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../lib/qunit/addons/composite/qunit-composite.css">
<script src="../../lib/qunit/js/qunit.js"></script>
<script src="../../lib/qunit/addons/composite/qunit-composite.js"></script>
<!-- Stupid bloody escaping rules:
find . -name "*-test.html" | awk '{print "\""$1"\","}' -->
<script>
QUnit.testSuites([
"./html/CSSGenerator-test.html",
"./html/Enactors-test.html",
"./html/FatPanelUIOptions-test.html",
"./html/FullNoPreviewUIOptions-test.html",
"./html/FullPreviewUIOptions-test.html",
"./html/ModelRelay-test.html",
"./html/PageEnhancer-test.html",
"./html/SettingsPanels-test.html",
"./html/SlidingPanel-test.html",
"./html/Store-test.html",
"./html/TextfieldSlider-test.html",
"./html/UIEnhancer-test.html",
"./html/UIOptions-test.html",
"./html/URLUtilities-test.html"
]);
</script>
</head>
<body>
<div id="qunit"></div>
<div id="qunit-fixture">
</div>
</body>
</html>
Expand Up @@ -154,7 +154,8 @@ https://github.com/fluid-project/infusion/raw/master/Infusion-LICENSE.txt
};

fluid.tests.contrastPanel.changeChecked = function (inputs, newValue) {
inputs.filter("[value='" + newValue + "']").click();
inputs.removeAttr("checked");
inputs.filter("[value='" + newValue + "']").attr("checked", "checked").change();
};

fluid.defaults("fluid.tests.contrastTester", {
Expand Down Expand Up @@ -297,7 +298,7 @@ https://github.com/fluid-project/infusion/raw/master/Infusion-LICENSE.txt
* Test functions shared by checkbox panels: layoutPanel & linkPanel
*******************************************************************************/
fluid.tests.changeCheckboxSelection = function (element) {
element.click();
element.attr("checked", "checked").change();
};

/*******************************************************************************
Expand Down

0 comments on commit a2af7fd

Please sign in to comment.