Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Side by Side Diff: LayoutTests/crypto/gc.html

Issue 215763002: [webcrypto] Add layout tests for garbage collection of custom properties. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Modifications for Blink Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « LayoutTests/crypto/crypto-gc-expected.txt ('k') | LayoutTests/crypto/gc-2.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <script src="../resources/js-test.js"></script>
6 </head>
7 <body>
8 <script>
9
10 description("Test that window.crypto.subtle wrapper preserves custom properties. ");
11 jsTestIsAsync = true;
12
13 function startTest()
14 {
15 window.crypto.subtle.foo = "bar";
16 gc();
17 setTimeout(continueTest, 10);
18 }
19
20 function continueTest()
21 {
22 gc();
23 setTimeout(finishTest, 10);
24 }
25
26 function finishTest()
27 {
28 gc();
29 shouldBe('window.crypto.subtle.foo', '"bar"');
30 finishJSTest();
31 }
32
33 window.onload = startTest;
34
35 </script>
36 </body>
37 </html>
OLDNEW
« no previous file with comments | « LayoutTests/crypto/crypto-gc-expected.txt ('k') | LayoutTests/crypto/gc-2.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698