Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / inspector-protocol / css / css-set-property-text-inline.html
index 967ca69..1f4a61c 100644 (file)
@@ -25,7 +25,7 @@ function test()
 
     function onInlineStyleRecieved(result)
     {
-        var styleSheetId = result.inlineStyle.styleId.styleSheetId;
+        var styleSheetId = result.inlineStyle.styleSheetId;
         setPropertyText = InspectorTest.setPropertyText.bind(InspectorTest, styleSheetId, false);
         verifyProtocolError = InspectorTest.setPropertyText.bind(InspectorTest, styleSheetId, true);
         dumpStyleSheet = InspectorTest.dumpStyleSheetText.bind(null, styleSheetId);
@@ -43,9 +43,7 @@ function test()
         function testEditProperty(next)
         {
             setPropertyText({
-                styleIndex: 0,
-                propertyIndex: 0,
-                overwrite: true,
+                range: { startLine: 0, startColumn: 0, endLine: 0, endColumn: 11 },
                 text: "content: 'EDITED PROPERTY';"
             }, InspectorTest.undoAndNext(next));
         },
@@ -53,9 +51,7 @@ function test()
         function testBreakingCommentEditProperty(next)
         {
             verifyProtocolError({
-                styleIndex: 0,
-                propertyIndex: 0,
-                overwrite: true,
+                range: { startLine: 0, startColumn: 0, endLine: 0, endColumn: 11 },
                 text: "/*<--OPENED COMMENT"
             }, next);
         },
@@ -63,9 +59,7 @@ function test()
         function testInsertFirstProperty(next)
         {
             setPropertyText({
-                styleIndex: 0,
-                propertyIndex: 0,
-                overwrite: false,
+                range: { startLine: 0, startColumn: 0, endLine: 0, endColumn: 0 },
                 text: "content: 'INSERTED PROPERTY';"
             }, InspectorTest.undoAndNext(next));
         },
@@ -73,9 +67,7 @@ function test()
         function testInsertMultipleProperties(next)
         {
             setPropertyText({
-                styleIndex: 0,
-                propertyIndex: 0,
-                overwrite: true,
+                range: { startLine: 0, startColumn: 11, endLine: 0, endColumn: 11 },
                 text: "content: 'INSERTED #1';content: 'INSERTED #2';"
             }, InspectorTest.undoAndNext(next));
         },
@@ -83,9 +75,7 @@ function test()
         function testInsertLastProperty(next)
         {
             setPropertyText({
-                styleIndex: 0,
-                propertyIndex: 2,
-                overwrite: false,
+                range: { startLine: 0, startColumn: 24, endLine: 0, endColumn: 24 },
                 text: "content: 'INSERTED PROPERTY';"
             }, InspectorTest.undoAndNext(next));
         },