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

Side by Side Diff: LayoutTests/inspector/elements/styles-1/cssom-media-insert-crash.html

Issue 1158883003: DevTools: shard inspector/elements tests for faster execution. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/elements-test.js"></script> 4 <script src="../../../http/tests/inspector/elements-test.js"></script>
5 <script> 5 <script>
6 6
7 function test() 7 function test()
8 { 8 {
9 InspectorTest.selectNodeAndWaitForStyles("box", step1); 9 InspectorTest.selectNodeAndWaitForStyles("box", step1);
10 10
(...skipping 18 matching lines...) Expand all
29 Tests that the inspected page does not crash after inspecting element with CSSOM added rules. <a href="http://crbug.com/373508">Bug 373508</a> 29 Tests that the inspected page does not crash after inspecting element with CSSOM added rules. <a href="http://crbug.com/373508">Bug 373508</a>
30 <div id="box">Inspecting this element crashes DevTools</div> 30 <div id="box">Inspecting this element crashes DevTools</div>
31 <script> 31 <script>
32 var lastSheet = document.styleSheets[document.styleSheets.length - 1]; 32 var lastSheet = document.styleSheets[document.styleSheets.length - 1];
33 var mediaIndex = lastSheet.insertRule('@media all { }', lastSheet.cssRules.lengt h); 33 var mediaIndex = lastSheet.insertRule('@media all { }', lastSheet.cssRules.lengt h);
34 var mediaRule = lastSheet.cssRules[mediaIndex]; 34 var mediaRule = lastSheet.cssRules[mediaIndex];
35 mediaRule.insertRule('#box { background: red; color: white; }', mediaRule.cssRul es.length); 35 mediaRule.insertRule('#box { background: red; color: white; }', mediaRule.cssRul es.length);
36 </script> 36 </script>
37 </body> 37 </body>
38 </html> 38 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698