Re: [eventsource-tests] {dedicated-worker,shared-worker}/eventsource-constructor-non-same-origin

On Tue, 13 Aug 2013 14:46:38 +0200, Arthur Barstow <art.barstow@nokia.com>  
wrote:

>> It is connected to dedicated-worker and shared-worker by this language:
>> This constructor must be visible when the script's global object is
>> either a Window object or an object implementing the WorkerUtils
>> interface.
>
> Sorry, but would you please identify the specific part(s) of the test  
> that asserts the sentence above?

This line:

   var source = new EventSource(url)

> (I don't understand what "This constructor must be _visible_" means

It means that the constructor exists in that environment.

> and how it is being asserted by the test.)

If the constructor was absent in the worker, the line cited above would  
throw an exception and the catch block would post a message to the Window  
context indicating the failure (the first assert_true of each subtest  
would fail).

-- 
Simon Pieters
Opera Software

Received on Tuesday, 13 August 2013 13:31:19 UTC