Test Case Boilerplate

Fork this way...

HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb">

<head>

<title>Battle.net</title>

<meta content="false" http-equiv="imagetoolbar" />
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible" />

<link rel="shortcut icon" href="http://eu.battle.net/static/local-common/images/favicons/root.ico" type="image/x-icon"/>

<link rel="search" type="application/opensearchdescription+xml" href="http://eu.battle.net/en-gb/data/opensearch" title="Battle.net Search" />

<link rel="stylesheet" type="text/css" media="all" href="http://eu.battle.net/static/local-common/css/common.css?v37" />

<link rel="stylesheet" type="text/css" media="all" href="http://eu.battle.net/static/css/bnet.css?v10" />

<link rel="stylesheet" type="text/css" media="all" href="http://eu.battle.net/static/css/homepage.css?v10" />

<script type="text/javascript" src="http://eu.battle.net/static/local-common/js/core.js?v37"></script>

<script type="text/javascript" src="http://eu.battle.net/static/local-common/js/tooltip.js?v37"></script>

<script type="text/javascript">

//<![CDATA[

Core.staticUrl = 'http://eu.battle.net/static';

Core.sharedStaticUrl= 'http://eu.battle.net/static/local-common';

Core.baseUrl = 'http://eu.battle.net/en';

Core.projectUrl = '';

Core.cdnUrl = 'http://eu.media.blizzard.com';

Core.supportUrl = 'http://eu.battle.net/support/';

Core.secureSupportUrl= 'https://eu.battle.net/support/';

Core.project = 'root';

Core.locale = 'en-gb';

Core.language = 'en';

Core.buildRegion = 'eu';

Core.region = 'eu';

Core.shortDateFormat= 'dd/MM/yyyy';

Core.dateTimeFormat = 'dd/MM/yyyy HH:mm';

Core.loggedIn = false;

Flash.videoPlayer = 'http://eu.media.blizzard.com/global-video-player/themes/root/video-player.swf';

Flash.videoBase = 'http://eu.media.blizzard.com/root/media/videos';

Flash.ratingImage =...

JavaScript

$(function() {
    var selector = "[onclick^=\"window.open('http://www.firstload.de/\"]";
    console.log(jQuery(selector).length);
});