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

Side by Side Diff: LayoutTests/crypto/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 | « no previous file | LayoutTests/crypto/crypto-gc-expected.txt » ('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 <script src="../resources/gc.js"></script>
7 </head>
8 <body>
9 <script>
10
11 description("Test that window.crypto wrapper preserves custom properties.");
12 jsTestIsAsync = true;
13
14 function startTest()
15 {
16 window.crypto.foo = "bar";
17 gc();
18 setTimeout(continueTest, 10);
19 }
20
21 function continueTest()
22 {
23 gc();
24 setTimeout(finishTest, 10);
25 }
26
27 function finishTest()
28 {
29 gc();
30 shouldBe('window.crypto.foo', '"bar"');
31 finishJSTest();
32 }
33
34 window.onload = startTest;
35
36 </script>
37 </body>
38 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/crypto/crypto-gc-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698