This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 25668 - Nit: Capabilities.has spec can be simplified
Summary: Nit: Capabilities.has spec can be simplified
Status: RESOLVED FIXED
Alias: None
Product: Browser Test/Tools WG
Classification: Unclassified
Component: WebDriver (show other bugs)
Version: unspecified
Hardware: All All
: P2 minor
Target Milestone: ---
Assignee: Browser Testing and Tools WG
QA Contact: Browser Testing and Tools WG
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-12 22:05 UTC by seva
Modified: 2014-06-30 21:21 UTC (History)
2 users (show)

See Also:


Attachments

Description seva 2014-05-12 22:05:03 UTC
What's currently

"This must return true if the capabilities contain a key with the given capabilityName and the value of that key is defined. If the value is a boolean, this function must return that boolean value. If the value is null, an empty string or a 0 then this method must return false."

could be made slightly simpler and shorter, for example,

"This must return true if the capabilities contain a key with the given capabilityName and the value of that key is either the boolean True or a non-empty DOMString or a long that is not 0. Otherwise it must return false."
Comment 1 David Burns :automatedtester 2014-06-30 21:21:22 UTC
https://dvcs.w3.org/hg/webdriver/rev/8d2f8fc20402