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

Side by Side Diff: chrome/test/data/extensions/api_test/shadow_dom/background.js

Issue 11548020: Use element.createShadowRoot since WebKitShadowRoot is deprecated. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 chrome.test.runTests([ 5 chrome.test.runTests([
6 function currentWindow() { 6 function createShadowRootIsAvailableInElement() {
not at google - send to devlin 2012/12/12 16:47:29 when would this test fail?
dougw 2012/12/12 21:37:29 For old versions of WebKit.
not at google - send to devlin 2012/12/12 21:45:37 I don't follow... these tests run for WebKit at ti
7 chrome.test.assertTrue('WebKitShadowRoot' in window); 7 chrome.test.assertTrue('webkitCreateShadowRoot' in Element.prototype);
8 chrome.test.succeed();
9 },
10
11 function newWindow() {
12 var w = window.open('empty.html');
13 chrome.test.assertTrue('WebKitShadowRoot' in w);
14 chrome.test.succeed(); 8 chrome.test.succeed();
15 } 9 }
16 ]); 10 ]);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698