Re: [presentation-api] Presentation API IDL Tests for Presentation Interface

@mfoltzgoogle I just replied to your original issue #205.  Regarding 
your question: exactly each conformance class have its own IDL test. 
If we tag in the spec the parts of the IDL to be present in the 
receiving or controlling UA, we can then extract the IDL for each 
conformance class automatically.  For now I extract the complete IDL 
using the following function and then split the IDL for each 
conformance class manually. maybe we can define two additional classes
 `idl-controlling-ua` and `idl-receiving-ua` so that we can extract 
each of them separately e.g. by using 
`document.getElementsByClassName("idl-controlling-ua")` or 
`document.getElementsByClassName("idl-receiving-ua")` : 

```javascript
(function(){
  var s = "";
  [].forEach.call(document.getElementsByClassName("idl"), 
function(idl) {
    if (!idl.classList.contains("extract"))
      s += idl.textContent + "\n\n";
  });
  document.body.innerHTML = '<pre></pre>';
  document.body.firstChild.textContent = s;
  })();
``` 

You can close this task. 

-- 
GitHub Notification of comment by louaybassbouss
Please view or discuss this issue at 
https://github.com/w3c/presentation-api/issues/230#issuecomment-181303829
 using your GitHub account

Received on Monday, 8 February 2016 10:51:46 UTC