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

Side by Side Diff: client/tests/client/dom/InnerFrameTest.dart

Issue 9537001: Generate dart:html bindings for Dartium as well as Frog. All unittests now pass (or are disabled fo… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
OLDNEW
1 #library('InnerFrameTest'); 1 #library('InnerFrameTest');
2 #import('../../../testing/unittest/unittest.dart'); 2 #import('../../../testing/unittest/unittest_dom.dart');
3 #import('dart:dom'); 3 #import('dart:dom');
4 4
5 main() { 5 main() {
6 if (window != window.top) { 6 if (window != window.top) {
7 // Child frame. 7 // Child frame.
8 8
9 // The child's frame should not be able to access its parent's 9 // The child's frame should not be able to access its parent's
10 // document. 10 // document.
11 try { 11 try {
12 var parentDocument = window.frameElement.ownerDocument; 12 var parentDocument = window.frameElement.ownerDocument;
(...skipping 18 matching lines...) Expand all
31 document.body.appendChild(iframe); 31 document.body.appendChild(iframe);
32 }); 32 });
33 33
34 test('frameElement', () { 34 test('frameElement', () {
35 var div = document.getElementById('illegal'); 35 var div = document.getElementById('illegal');
36 36
37 // Ensure that this parent frame was not modified by its child. 37 // Ensure that this parent frame was not modified by its child.
38 Expect.isNull(div); 38 Expect.isNull(div);
39 }); 39 });
40 } 40 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698