1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/browser/devtools/styleeditor/test/browser_styleeditor_cmd_edit.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,50 @@ 1.4 +<!DOCTYPE html> 1.5 +<html> 1.6 +<!-- Any copyright is dedicated to the Public Domain. 1.7 + http://creativecommons.org/publicdomain/zero/1.0/ --> 1.8 +<head> 1.9 + <meta charset="utf-8"> 1.10 + <title>Resources</title> 1.11 + <script type="text/javascript" id="script1"> 1.12 + window.addEventListener('load', function() { 1.13 + var pid = document.getElementById('pid'); 1.14 + var div = document.createElement('div'); 1.15 + div.id = 'divid'; 1.16 + div.classList.add('divclass'); 1.17 + div.appendChild(document.createTextNode('div')); 1.18 + div.setAttribute('data-a1', 'div'); 1.19 + pid.parentNode.appendChild(div); 1.20 + }); 1.21 + </script> 1.22 + <script src="resources_inpage.jsi"></script> 1.23 + <link rel="stylesheet" type="text/css" href="resources_inpage1.css"/> 1.24 + <link rel="stylesheet" type="text/css" href="resources_inpage2.css"/> 1.25 + <style type="text/css"> 1.26 + p { color: #800; } 1.27 + div { color: #008; } 1.28 + h4 { color: #080; } 1.29 + h3 { color: #880; } 1.30 + </style> 1.31 +</head> 1.32 +<body> 1.33 + <style type="text/css" id=style2> 1.34 + .pclass { background-color: #FEE; } 1.35 + .divclass { background-color: #EEF; } 1.36 + .h4class { background-color: #EFE; } 1.37 + .h3class { background-color: #FFE; } 1.38 + </style> 1.39 + 1.40 + <p class="pclass" id="pid" data-a1="p">paragraph</p> 1.41 + 1.42 + <script> 1.43 + var pid = document.getElementById('pid'); 1.44 + var h4 = document.createElement('h4'); 1.45 + h4.id = 'h4id'; 1.46 + h4.classList.add('h4class'); 1.47 + h4.appendChild(document.createTextNode('h4')); 1.48 + h4.setAttribute('data-a1', 'h4'); 1.49 + pid.parentNode.appendChild(h4); 1.50 + </script> 1.51 + 1.52 +</body> 1.53 +</html>