blob: 42d89cf5aa9ddaad48f7c369f26d4a766fdab2b9 [file] [log] [blame]
<html>
<head>
<link rel="stylesheet" href="resources/test-edit-toggle-property.css">
<script src="../../http/tests/inspector/inspector-test.js"></script>
<script src="../../http/tests/inspector/debugger-test.js"></script>
<script src="./sass-test.js"></script>
<script>
function test()
{
var header = InspectorTest.cssModel.styleSheetHeaders().find(header => !!header.sourceMapURL)
InspectorTest.runCSSEditTests(header, [
function testDisableProperty(text)
{
return [
InspectorTest.createEdit(text, "margin: 10px;", "/* margin: 10px; */")
];
},
function testEnableProperty(text)
{
return [
InspectorTest.createEdit(text, "/*color: red;*/", "color: red;")
];
},
function testDisableMultipleProperties(text)
{
return [
InspectorTest.createEdit(text, "margin: 10px;", "/* margin: 10px; */", 0),
InspectorTest.createEdit(text, "margin: 10px;", "/* margin: 10px; */", 2)
];
},
]);
}
</script>
</head>
<body onload="runTest()">
<p>Verify that mapping is not valid for misaligned sources.</p>
</body>
</html>