<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Test Page</title>
</head>
<body class="yui3-skin-sam">
<div id="log"></div>
<div id="test" style="visibility: hidden;">
<div id="test-content"></div>
<a href="#log" id="link-in-page" class="yui3-pjax">in-page</a>
<a href="" id="link-current" class="yui3-pjax">current page</a>
</div>
<script>
var Y = YUI({
allowRollup: false,
filter: (window.location.search.match(/[?&]filter=([^&]+)/) || [])[1] || 'min',
modules: {
'pjax-test': {
fullpath: 'pjax-test.js',
requires: ['pjax-plugin', 'test']
}
}
}).use('pjax-test', 'test-console', function (Y) {
new Y.Test.Console().render('#log');
});
</script>
</body>
</html>