jacklone / browserscope

Automatically exported from code.google.com/p/browserscope
Apache License 2.0
0 stars 0 forks source link

Boolean support in custom tests #220

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
According to How To (http://www.browserscope.org/user/tests/howto), the only 
values that can be reported are numbers from 0 through 10000.

For many tests, returning boolean values is very important - see homepage for 
Browserscope.org ;)

Allow to set values in _bTestResults to be true / false.

Original issue reported on code.google.com by sergey.c...@gmail.com on 8 Jun 2010 at 5:27

GoogleCodeExporter commented 8 years ago
0 / 1 is the way to do a boolean test ;)
I'll add a note in the HOWTO - and true you'll have to case the primitive js 
boolean to a Number, but that's pretty trivial. i.e. Number(false) === 0 and 
Number(true) === 1 =)

Original comment by els...@gmail.com on 8 Jun 2010 at 7:15