Training Guide: Programming in HTML5 with JavaScript and CSS3 Ebook

(Nora) #1

Lesson 2: Writing, testing, and debugging JavaScript CHAPTER 3 95


FIGURE 3-7 QUnit summary screen showing the successful Hello World test

Setting up QUnit-Metro with Windows 8 applications
To set up QUnit with a Windows 8 application, you must first start Visual Studio Express 2012
for Windows 8 and create a JavaScript | Windows Store application. In this example, Blank App
is created.
In the Solution Explorer window, right-click the project node and click Manage NuGet
Packages. This displays the Manage NuGet Packages window. NuGet is an open-source pack-
age management system for the .NET platform that simplifies the addition of third-party
libraries to your code. Click the Online node and then, in the Search Online text box, enter
QUnit-Metro and click the magnifying glass to perform the search. The results display, similar
to Figure 3-8. Your result screen might be different due to the many new packages that are
being released, so be sure to look for the QUnit-Metro package.
Free download pdf