chuang yu dun

test

By
0x_Jin 0 Seen 138 times
Tags
test
Run this test now.

Results


Tested on
Googlebot - 2.1 - undefined
devicePixelRatio1
length0
pageYOffset0
pageXOffset0
scrollY0
scrollX0
screenTop0
screenLeft0
screenY0
screenX0
innerWidth1008
innerHeight999
outerWidth1024
outerHeight1024
TEMPORARY0
PERSISTENT1

Tested on
Chrome Mobile - 41 - Android
nullnull

User Script (ENUM_FUNCTION)

					
function test(data){
// data is the input variable that is supplied from the Enumeration List.

// For this module, we don't process the input data.
  addResult(data.prop, data.val);

}


					
				

Enum Data (ENUM_FUNCTION)

					
var data = []; // This Array is going to be populated with our enumeration result.
var x;
for(x in window){
  if(typeof window[x] == "number"){
    var obj = {};
    obj.prop = x;
    obj.val = window[x];
    data.push(obj);
  }
}

// what if the array is empty now?
if(data.length === 0){
    var obj = {};
    obj.prop = 'This browser doesn\'t have any Number properties on the Window Object';
    obj.val = ''; // Empty data
    data.push(obj);
}