Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 ]); |
| OLD | NEW |