| Index: third_party/WebKit/LayoutTests/inspector-protocol/css/css-add-rule.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/css/css-add-rule.html b/third_party/WebKit/LayoutTests/inspector-protocol/css/css-add-rule.html
|
| index bda7272ba08038b206d5c4373eb4437ce1c1d068..ba82fba61d1fe9e5f02f9c2cca7624d03ff25daa 100644
|
| --- a/third_party/WebKit/LayoutTests/inspector-protocol/css/css-add-rule.html
|
| +++ b/third_party/WebKit/LayoutTests/inspector-protocol/css/css-add-rule.html
|
| @@ -1,14 +1,14 @@
|
| <html>
|
| <head>
|
| <link rel="stylesheet" href="resources/add-rule.css"/>
|
| -<script type="text/javascript" src="../../http/tests/inspector-protocol/inspector-protocol-test.js"></script>
|
| -<script type="text/javascript" src="../../http/tests/inspector-protocol/css-protocol-test.js"></script>
|
| -<script type="text/javascript" src="../../http/tests/inspector-protocol/dom-protocol-test.js"></script>
|
| +<script type="text/javascript" src="../../http/tests/inspector-protocol/resources/inspector-protocol-test.js"></script>
|
| +<script type="text/javascript" src="../resources/css-protocol-test.js"></script>
|
| +<script type="text/javascript" src="../resources/dom-protocol-test.js"></script>
|
| <script type="text/javascript">
|
| function test()
|
| {
|
| var addRule;
|
| - var verifyProtocolError;
|
| + var verifydpError;
|
| var dumpStyleSheet;
|
| var documentNodeId;
|
|
|
| @@ -25,7 +25,7 @@ function test()
|
| {
|
| var styleSheetId = result.params.header.styleSheetId;
|
| addRule = InspectorTest.addRule.bind(InspectorTest, styleSheetId, false);
|
| - verifyProtocolError = InspectorTest.addRule.bind(InspectorTest, styleSheetId, true);
|
| + verifydpError = InspectorTest.addRule.bind(InspectorTest, styleSheetId, true);
|
| dumpStyleSheet = InspectorTest.dumpStyleSheetText.bind(null, styleSheetId);
|
| InspectorTest.sendCommandOrDie("CSS.getStyleSheetText", { styleSheetId: styleSheetId }, onInitialStyleSheetText);
|
| }
|
| @@ -115,7 +115,7 @@ function test()
|
|
|
| function testInvalidRule(next)
|
| {
|
| - verifyProtocolError({
|
| + verifydpError({
|
| location: { startLine: 0, startColumn: 0, endLine: 0, endColumn: 0 },
|
| ruleText: "#test { content: 'EDITED';",
|
| }, next);
|
| @@ -123,7 +123,7 @@ function test()
|
|
|
| function testInvalidRule2(next)
|
| {
|
| - verifyProtocolError({
|
| + verifydpError({
|
| location: { startLine: 0, startColumn: 0, endLine: 0, endColumn: 0 },
|
| ruleText: "@media all { ",
|
| }, next);
|
| @@ -131,7 +131,7 @@ function test()
|
|
|
| function testInvalidRule3(next)
|
| {
|
| - verifyProtocolError({
|
| + verifydpError({
|
| location: { startLine: 0, startColumn: 0, endLine: 0, endColumn: 0 },
|
| ruleText: "#test {} #test {",
|
| }, next);
|
| @@ -139,7 +139,7 @@ function test()
|
|
|
| function testAddingRuleInsideSelector(next)
|
| {
|
| - verifyProtocolError({
|
| + verifydpError({
|
| location: { startLine: 0, startColumn: 2, endLine: 0, endColumn: 2 },
|
| ruleText: "#test { content: 'EDITED'; }",
|
| }, next);
|
| @@ -147,7 +147,7 @@ function test()
|
|
|
| function testAddingRuleBeforeRuleBody(next)
|
| {
|
| - verifyProtocolError({
|
| + verifydpError({
|
| location: { startLine: 4, startColumn: 6, endLine: 4, endColumn: 6 },
|
| ruleText: "#test { content: 'EDITED'; }",
|
| }, next);
|
| @@ -155,7 +155,7 @@ function test()
|
|
|
| function testAddingRuleInsideMedia1(next)
|
| {
|
| - verifyProtocolError({
|
| + verifydpError({
|
| location: { startLine: 12, startColumn: 9, endLine: 12, endColumn: 9 },
|
| ruleText: "#test { content: 'EDITED'; }",
|
| }, next);
|
| @@ -163,7 +163,7 @@ function test()
|
|
|
| function testAddingRuleInsideMedia2(next)
|
| {
|
| - verifyProtocolError({
|
| + verifydpError({
|
| location: { startLine: 12, startColumn: 15, endLine: 12, endColumn: 15 },
|
| ruleText: "#test { content: 'EDITED'; }",
|
| }, next);
|
| @@ -171,7 +171,7 @@ function test()
|
|
|
| function testAddingRuleBeforeMediaBody(next)
|
| {
|
| - verifyProtocolError({
|
| + verifydpError({
|
| location: { startLine: 12, startColumn: 24, endLine: 12, endColumn: 24 },
|
| ruleText: "#test { content: 'EDITED'; }",
|
| }, next);
|
| @@ -179,7 +179,7 @@ function test()
|
|
|
| function testAddingRuleInsideStyleRule(next)
|
| {
|
| - verifyProtocolError({
|
| + verifydpError({
|
| location: { startLine: 18, startColumn: 0, endLine: 18, endColumn: 0 },
|
| ruleText: "#test { content: 'EDITED'; }",
|
| }, next);
|
|
|