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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/fontfaceset-cross-frame.html

Issue 1960013002: Use correct creation context during Iterable.forEach iteration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2661
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/Iterable.h » ('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 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <body>
5 <script>
6
7 test(function () {
8 var i = document.createElement("iframe");
9
10 document.body.appendChild(i);
11
12 var d = i.contentDocument.open();
13
14 d.write("<style>@font-face { font-family: f1; src: url(); } @font-face { font- family: f2; src: url(); }</style>");
15 d.close();
16
17 var frame_FontFace = i.contentWindow.FontFace;
18
19 var c = 0;
20 d.fonts.forEach(function (f) {
21 assert_equals(f.constructor, frame_FontFace, "constructed in frame context") ;
22
23 if (++c == 1) {
24 // First iteration: navigate the frame to about:blank. The second
25 // iteration's |f| should still be created with the prototype.
26
27 var a = d.createElement("a");
28 a.href = "about:blank";
29 a.click();
30 }
31 });
32 }, "objects created with correct creation context");
33
34 </script>
35 </body>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/Iterable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698