43fe9bba01c587029abe1df7417e3ac10e2caccbDav Glass<!doctype html>
78251cb820d45fa9e779c856ea59237ea10dfc25Allen Rabinovich<html>
78251cb820d45fa9e779c856ea59237ea10dfc25Allen Rabinovich<head>
78251cb820d45fa9e779c856ea59237ea10dfc25Allen Rabinovich<title>swfdetect tests</title>
78251cb820d45fa9e779c856ea59237ea10dfc25Allen Rabinovich<link type="text/css" rel="stylesheet" href="/build/logreader/assets/skins/sam/logreader.css" />
78251cb820d45fa9e779c856ea59237ea10dfc25Allen Rabinovich<script type="text/javascript" src="/build/yui/yui.js"></script>
78251cb820d45fa9e779c856ea59237ea10dfc25Allen Rabinovich</head>
c28f85fdfe5f4318a887f384ac1e58d40414fdbaLuke Smith<body class="yui3-skin-sam">
b5ea9923e255f649110ea11465ba8db74a5eb395Allen Rabinovich <h1>SWFDetect Tests</h1>
78251cb820d45fa9e779c856ea59237ea10dfc25Allen Rabinovich <div id="testoutput"></div>
78251cb820d45fa9e779c856ea59237ea10dfc25Allen Rabinovich<script type="text/javascript">
78251cb820d45fa9e779c856ea59237ea10dfc25Allen Rabinovich
78251cb820d45fa9e779c856ea59237ea10dfc25Allen RabinovichYUI({
78251cb820d45fa9e779c856ea59237ea10dfc25Allen Rabinovich base: '/build/',
b5ea9923e255f649110ea11465ba8db74a5eb395Allen Rabinovich filter: "raw",
b5ea9923e255f649110ea11465ba8db74a5eb395Allen Rabinovich modules: {
b5ea9923e255f649110ea11465ba8db74a5eb395Allen Rabinovich swfdetect: {
b5ea9923e255f649110ea11465ba8db74a5eb395Allen Rabinovich path: "swfdetect/swfdetect.js"
b5ea9923e255f649110ea11465ba8db74a5eb395Allen Rabinovich }
b5ea9923e255f649110ea11465ba8db74a5eb395Allen Rabinovich }
78251cb820d45fa9e779c856ea59237ea10dfc25Allen Rabinovich}).use('swfdetect', function (Y) {
1e237bd7998cacac632de9208a03181d894c4daaRyan Cannon var flashMajor = String(Y.UA.flashMajor),
1e237bd7998cacac632de9208a03181d894c4daaRyan Cannon flashMinor = String(Y.UA.flashMinor),
1e237bd7998cacac632de9208a03181d894c4daaRyan Cannon flashRev = String(Y.UA.flashRev),
1e237bd7998cacac632de9208a03181d894c4daaRyan Cannon output = "";
1e237bd7998cacac632de9208a03181d894c4daaRyan Cannon
1e237bd7998cacac632de9208a03181d894c4daaRyan Cannon output += "Flash Major: " + flashMajor + "<br/>";
1e237bd7998cacac632de9208a03181d894c4daaRyan Cannon output += "Flash Minor: " + flashMinor + "<br/>";
1e237bd7998cacac632de9208a03181d894c4daaRyan Cannon output += "Flash Revision: " + flashRev + "<br/>";
1e237bd7998cacac632de9208a03181d894c4daaRyan Cannon output += 'Check major version: <br />';
1e237bd7998cacac632de9208a03181d894c4daaRyan Cannon output += '* Lower: ' + String(Y.SWFDetect.isFlashVersionAtLeast(flashMajor - 1)) + '<br/>';
1e237bd7998cacac632de9208a03181d894c4daaRyan Cannon output += '* Same ' + String(Y.SWFDetect.isFlashVersionAtLeast(flashMajor)) + '<br/>';
1e237bd7998cacac632de9208a03181d894c4daaRyan Cannon output += '* Higher? ' + String(Y.SWFDetect.isFlashVersionAtLeast(flashMajor + 1)) + '<br/>';
1e237bd7998cacac632de9208a03181d894c4daaRyan Cannon output += 'Check minor version: <br />';
1e237bd7998cacac632de9208a03181d894c4daaRyan Cannon output += '* Lower: ' + String(Y.SWFDetect.isFlashVersionAtLeast(flashMajor, flashMinor - 1)) + '<br/>';
1e237bd7998cacac632de9208a03181d894c4daaRyan Cannon output += '* Same ' + String(Y.SWFDetect.isFlashVersionAtLeast(flashMajor, flashMinor)) + '<br/>';
1e237bd7998cacac632de9208a03181d894c4daaRyan Cannon output += '* Higher? ' + String(Y.SWFDetect.isFlashVersionAtLeast(flashMajor, flashMinor + 1)) + '<br/>';
1e237bd7998cacac632de9208a03181d894c4daaRyan Cannon output += 'Check revision: <br />';
1e237bd7998cacac632de9208a03181d894c4daaRyan Cannon output += '* Lower: ' + String(Y.SWFDetect.isFlashVersionAtLeast(flashMajor, flashMinor, flashRev - 1)) + '<br/>';
1e237bd7998cacac632de9208a03181d894c4daaRyan Cannon output += '* Same ' + String(Y.SWFDetect.isFlashVersionAtLeast(flashMajor, flashMinor, flashRev)) + '<br/>';
1e237bd7998cacac632de9208a03181d894c4daaRyan Cannon output += '* Higher? ' + String(Y.SWFDetect.isFlashVersionAtLeast(flashMajor, flashMinor, flashRev + 1)) + '<br/>';
78251cb820d45fa9e779c856ea59237ea10dfc25Allen Rabinovich
78251cb820d45fa9e779c856ea59237ea10dfc25Allen Rabinovichdocument.getElementById('testoutput').innerHTML = output;
78251cb820d45fa9e779c856ea59237ea10dfc25Allen Rabinovich});
78251cb820d45fa9e779c856ea59237ea10dfc25Allen Rabinovich
b5ea9923e255f649110ea11465ba8db74a5eb395Allen Rabinovich</script>
b5ea9923e255f649110ea11465ba8db74a5eb395Allen Rabinovich</body>
b5ea9923e255f649110ea11465ba8db74a5eb395Allen Rabinovich</html>