forked from qunitmetro/QUnitMetro
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Forced the unitTestContainer to start hidden
Added README for NuGet package
- Loading branch information
1 parent
150c0d0
commit 5a760ad
Showing
2 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
v0.2.0 - 6/10/2012 | ||
|
||
Thank you for choosing to install QUnit-Metro. This initial release should get you started with writing simple unit tests for your WinJS Metro applications. | ||
|
||
To get started, in your App Bar control in default.htm add the following button: | ||
<button data-win-control="WinJS.UI.AppBarCommand" data-win-options="{id:'runTestsAppBarCmd', label:'Run Tests', icon:'repair', section: 'global', onclick: QUnitMetro.runTests}"></button> | ||
|
||
In the default.htm page, add this container for the unit test results: | ||
<div id="unitTestContainer"> | ||
<div id="qunit"></div> | ||
<div id="qunit-fixture"></div> | ||
<button id="closeTests">Close</button> | ||
</div> | ||
|
||
|
||
Next, add references to the QUnit-Metro script and css in each page of your app: | ||
<script src="/js/qunitmetro.js"></script> | ||
<link href="/css/qunitmetro.css" rel="stylesheet" /> | ||
|
||
Finally, on those pages where you would like to run tests, include a script reference to your test file: | ||
<script src="test.js"></script> | ||
|
||
On those pages that contain tests, you should be able to access the AppBar in your app, and click the 'Run Tests' button to run your unit tests. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -263,5 +263,5 @@ | |
top: 0px; | ||
left: 0px; | ||
z-index: 11; /* Because 11 is 1 higher than 10 */ | ||
|
||
display: none; | ||
} |