- From: Ms2ger <ms2ger@gmail.com>
- Date: Tue, 10 Apr 2012 14:30:59 +0200
- To: 이종흔 <jhlee@infraware.co.kr>
- CC: public-webapps-testsuite@w3.org
On 04/04/2012 04:53 AM, 이종흔 wrote: > Hi, Ms2ger. > I have a question about your comment regarding the test case. > > In the test of the security requirements, > 1) Is it enough if it checks SECURITY_ERR? > 2) Or, Should the error be called when it calls clear()? > > If 2) is right, I'll fix the test content for it. > If 1) is Ok, I'll just remove the line with clear(). Sorry for the delay. It should check something like test(function() { var iframeWindow = document.getElementById('frame').contentWindow; iframeWindow.document.domain = "hello.world"; assert_throws("SECURITY_ERR", function() { iframeWindow.localStorage.clear(); }); }); to make sure it only passes if the clear() calls throws, and fails if the document.domain setter throws. HTH Ms2ger
Received on Tuesday, 10 April 2012 12:31:37 UTC