Changeset 206133 in webkit
- Timestamp:
- Sep 19, 2016 4:51:00 PM (8 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r206131 r206133 1 2016-09-19 Devin Rousso <dcrousso+webkit@gmail.com> 2 3 Web Inspector: adopt Object.awaitEvent in LayoutTests/inspector/css 4 https://bugs.webkit.org/show_bug.cgi?id=162071 5 6 Reviewed by Brian Burg. 7 8 Replace instances of singleFireEventListener with awaitEvent and use promise logic to make 9 tests more readable. 10 11 * inspector/css/createStyleSheet.html: 12 * inspector/css/generate-css-rule-string.html: 13 * inspector/css/manager-preferredInspectorStyleSheetForFrame-expected.txt: 14 * inspector/css/manager-preferredInspectorStyleSheetForFrame.html: 15 * inspector/css/stylesheet-events-basic.html: 16 * inspector/css/stylesheet-events-inspector-stylesheet.html: 17 * inspector/css/stylesheet-events-multiple-documents.html: 18 1 19 2016-09-19 Chris Dumez <cdumez@apple.com> 2 20 -
trunk/LayoutTests/inspector/css/createStyleSheet.html
r189104 r206133 14 14 name: "CheckNoStyleSheets", 15 15 description: "Ensure there are no stylesheets.", 16 test : (resolve, reject) =>{16 test(resolve, reject) { 17 17 InspectorTest.expectThat(WebInspector.cssStyleManager.styleSheets.length === 0, "Should be no stylesheets."); 18 18 resolve(); … … 24 24 name: "CreateInspectorStyleSheetCall" + i, 25 25 description: "Should create a new inspector stylesheet.", 26 test : (resolve, reject) =>{27 CSSAgent.createStyleSheet(mainFrame.id);28 WebInspector.cssStyleManager.singleFireEventListener(WebInspector.CSSStyleManager.Event.StyleSheetAdded, function(event){26 test(resolve, reject) { 27 WebInspector.cssStyleManager.awaitEvent(WebInspector.CSSStyleManager.Event.StyleSheetAdded) 28 .then((event) => { 29 29 InspectorTest.expectThat(WebInspector.cssStyleManager.styleSheets.length === i, "Should increase the list of stylesheets."); 30 30 InspectorTest.expectThat(event.data.styleSheet.origin === WebInspector.CSSStyleSheet.Type.Inspector, "Added StyleSheet origin should be 'inspector'."); … … 34 34 InspectorTest.expectThat(event.data.styleSheet !== addedStyleSheet, "Added StyleSheet should be different from the last added stylesheet."); 35 35 addedStyleSheet = event.data.styleSheet; 36 resolve(); 37 }); 36 }) 37 .then(resolve, reject); 38 39 CSSAgent.createStyleSheet(mainFrame.id); 38 40 } 39 41 }); 40 42 } 41 43 42 WebInspector.cssStyleManager.singleFireEventListener(WebInspector.CSSStyleManager.Event.StyleSheetRemoved, function(event) { 43 InspectorTest.assert(false, "Should not be removing any StyleSheets in this test."); 44 WebInspector.cssStyleManager.awaitEvent(WebInspector.CSSStyleManager.Event.StyleSheetRemoved) 45 .then((event) => { 46 InspectorTest.fail("Should not be removing any StyleSheets in this test."); 44 47 }); 45 48 -
trunk/LayoutTests/inspector/css/generate-css-rule-string.html
r190528 r206133 24 24 name: "InlineStyleString", 25 25 description: "Check the formatting of the generated inline style string.", 26 test : (resolve, reject) =>{26 test(resolve, reject) { 27 27 InspectorTest.log(nodeStyles.inlineStyle.generateCSSRuleString()); 28 28 resolve(); … … 35 35 name: "CSSRuleString" + i, 36 36 description: "Check the formatting of the generated string for the matched CSS rule.", 37 test : (resolve, reject) =>{37 test(resolve, reject) { 38 38 InspectorTest.log(rule.style.generateCSSRuleString()); 39 39 resolve(); … … 45 45 } 46 46 47 WebInspector.domTreeManager.requestDocument(function(documentNode) { 48 WebInspector.domTreeManager.querySelector(documentNode.id, "#test-node", function(contentNodeId) { 49 if (contentNodeId) { 50 let domNode = WebInspector.domTreeManager.nodeForId(contentNodeId); 51 nodeStyles = WebInspector.cssStyleManager.stylesForNode(domNode); 52 if (nodeStyles.needsRefresh) 53 nodeStyles.singleFireEventListener(WebInspector.DOMNodeStyles.Event.Refreshed, validateSelectors, this); 54 else 55 validateSelectors(); 56 } else { 47 WebInspector.domTreeManager.requestDocument((documentNode) => { 48 WebInspector.domTreeManager.querySelector(documentNode.id, "#test-node", (contentNodeId) => { 49 if (!contentNodeId) { 57 50 InspectorTest.log("DOM node not found."); 58 51 InspectorTest.completeTest(); 52 return; 59 53 } 54 55 let domNode = WebInspector.domTreeManager.nodeForId(contentNodeId); 56 nodeStyles = WebInspector.cssStyleManager.stylesForNode(domNode); 57 if (nodeStyles.needsRefresh) { 58 nodeStyles.awaitEvent(WebInspector.DOMNodeStyles.Event.Refreshed) 59 .then(validateSelectors); 60 } else 61 validateSelectors(); 60 62 }); 61 63 }); -
trunk/LayoutTests/inspector/css/manager-preferredInspectorStyleSheetForFrame-expected.txt
r189104 r206133 8 8 9 9 -- Running test case: CreateMainFrameInspectorStyleSheet 10 PASS: Should be one stylesheet. 11 PASS: StyleSheet origin is inspector. 12 PASS: StyleSheet.isInspectorStyleSheet() should be true. 10 13 PASS: Added StyleSheet origin should be 'inspector'. 11 14 PASS: StyleSheet.isInspectorStyleSheet() should be true. 12 15 PASS: Added StyleSheet frame should be the main frame. 13 PASS: Should be one stylesheet.14 PASS: StyleSheet origin is inspector.15 PASS: StyleSheet.isInspectorStyleSheet() should be true.16 16 17 17 -- Running test case: AnotherMainFrameRequestDoesNothing … … 21 21 22 22 -- Running test case: CreateSubFrameInspectorStyleSheet 23 PASS: Should be two stylesheets. 24 PASS: StyleSheet origin should be 'inspector'. 25 PASS: StyleSheet.isInspectorStyleSheet() should be true. 23 26 PASS: Added StyleSheet origin should be 'inspector'. 24 27 PASS: StyleSheet.isInspectorStyleSheet() should be true. 25 28 PASS: Added StyleSheet frame should be a child frame. 26 PASS: Should be two stylesheets.27 PASS: StyleSheet origin should be 'inspector'.28 PASS: StyleSheet.isInspectorStyleSheet() should be true.29 29 30 30 -- Running test case: AnotherSubFrameRequestDoesNothing -
trunk/LayoutTests/inspector/css/manager-preferredInspectorStyleSheetForFrame.html
r189104 r206133 14 14 name: "CheckNoStyleSheets", 15 15 description: "Ensure there are no stylesheets.", 16 test : (resolve, reject) =>{16 test(resolve, reject) { 17 17 InspectorTest.expectThat(WebInspector.cssStyleManager.styleSheets.length === 0, "Should be no stylesheets."); 18 18 resolve(); … … 23 23 name: "CreateMainFrameInspectorStyleSheet", 24 24 description: "First request for main frame should create inspector stylesheet.", 25 test: (resolve, reject) => { 26 WebInspector.cssStyleManager.singleFireEventListener(WebInspector.CSSStyleManager.Event.StyleSheetAdded, function(event) { 25 test(resolve, reject) { 26 WebInspector.cssStyleManager.awaitEvent(WebInspector.CSSStyleManager.Event.StyleSheetAdded) 27 .then((event) => { 27 28 InspectorTest.expectThat(event.data.styleSheet.origin === WebInspector.CSSStyleSheet.Type.Inspector, "Added StyleSheet origin should be 'inspector'."); 28 29 InspectorTest.expectThat(event.data.styleSheet.isInspectorStyleSheet(), "StyleSheet.isInspectorStyleSheet() should be true."); 29 30 InspectorTest.expectThat(event.data.styleSheet.parentFrame === mainFrame, "Added StyleSheet frame should be the main frame."); 30 31 }); 31 WebInspector.cssStyleManager.preferredInspectorStyleSheetForFrame(mainFrame, function(styleSheet) { 32 33 WebInspector.cssStyleManager.preferredInspectorStyleSheetForFrame(mainFrame, (styleSheet) => { 32 34 InspectorTest.expectThat(WebInspector.cssStyleManager.styleSheets.length === 1, "Should be one stylesheet."); 33 35 InspectorTest.expectThat(styleSheet.origin === WebInspector.CSSStyleSheet.Type.Inspector, "StyleSheet origin is inspector."); … … 41 43 name: "AnotherMainFrameRequestDoesNothing", 42 44 description: "Second request for main frame should not create a new stylesheet.", 43 test : (resolve, reject) =>{44 let listener = WebInspector.cssStyleManager.singleFireEventListener(WebInspector.CSSStyleManager.Event.StyleSheetAdded, function(event){45 test(resolve, reject) { 46 let listener = WebInspector.cssStyleManager.singleFireEventListener(WebInspector.CSSStyleManager.Event.StyleSheetAdded, (event) => { 45 47 InspectorTest.assert(false, "Should not create a new StyleSheet, should reuse the existing one"); 46 48 }); 47 WebInspector.cssStyleManager.preferredInspectorStyleSheetForFrame(mainFrame, function(styleSheet){49 WebInspector.cssStyleManager.preferredInspectorStyleSheetForFrame(mainFrame, (styleSheet) => { 48 50 InspectorTest.expectThat(WebInspector.cssStyleManager.styleSheets.length === 1, "Should still be one stylesheet."); 49 51 InspectorTest.expectThat(styleSheet.origin === WebInspector.CSSStyleSheet.Type.Inspector, "StyleSheet origin should be 'inspector'."); … … 58 60 name: "CreateSubFrameInspectorStyleSheet", 59 61 description: "First request for subframe should create inspector stylesheet.", 60 test: (resolve, reject) => { 61 WebInspector.cssStyleManager.singleFireEventListener(WebInspector.CSSStyleManager.Event.StyleSheetAdded, function(event) { 62 test(resolve, reject) { 63 WebInspector.cssStyleManager.awaitEvent(WebInspector.CSSStyleManager.Event.StyleSheetAdded) 64 .then((event) => { 62 65 InspectorTest.expectThat(event.data.styleSheet.origin === WebInspector.CSSStyleSheet.Type.Inspector, "Added StyleSheet origin should be 'inspector'."); 63 66 InspectorTest.expectThat(event.data.styleSheet.isInspectorStyleSheet(), "StyleSheet.isInspectorStyleSheet() should be true."); 64 67 InspectorTest.expectThat(event.data.styleSheet.parentFrame === childFrame, "Added StyleSheet frame should be a child frame."); 65 68 }); 66 WebInspector.cssStyleManager.preferredInspectorStyleSheetForFrame(childFrame, function(styleSheet) { 69 70 WebInspector.cssStyleManager.preferredInspectorStyleSheetForFrame(childFrame, (styleSheet) => { 67 71 InspectorTest.expectThat(WebInspector.cssStyleManager.styleSheets.length === 2, "Should be two stylesheets."); 68 72 InspectorTest.expectThat(styleSheet.origin === WebInspector.CSSStyleSheet.Type.Inspector, "StyleSheet origin should be 'inspector'."); … … 76 80 name: "AnotherSubFrameRequestDoesNothing", 77 81 description: "Second request for main frame should not create a new stylesheet.", 78 test : (resolve, reject) =>{79 let listener = WebInspector.cssStyleManager.singleFireEventListener(WebInspector.CSSStyleManager.Event.StyleSheetAdded, function(event){82 test(resolve, reject) { 83 let listener = WebInspector.cssStyleManager.singleFireEventListener(WebInspector.CSSStyleManager.Event.StyleSheetAdded, (event) => { 80 84 InspectorTest.assert(false, "Should not create a new StyleSheet, should reuse the existing one"); 81 85 }); 82 WebInspector.cssStyleManager.preferredInspectorStyleSheetForFrame(childFrame, function(styleSheet){86 WebInspector.cssStyleManager.preferredInspectorStyleSheetForFrame(childFrame, (styleSheet) => { 83 87 InspectorTest.expectThat(WebInspector.cssStyleManager.styleSheets.length === 2, "Should be two stylesheets."); 84 88 InspectorTest.expectThat(styleSheet.origin === WebInspector.CSSStyleSheet.Type.Inspector, "StyleSheet origin should be 'inspector'."); … … 90 94 }); 91 95 92 WebInspector.cssStyleManager.singleFireEventListener(WebInspector.CSSStyleManager.Event.StyleSheetRemoved, function(event) { 96 WebInspector.cssStyleManager.awaitEvent(WebInspector.CSSStyleManager.Event.StyleSheetRemoved) 97 .then((event) => { 93 98 InspectorTest.assert(false, "Should not be removing any StyleSheets in this test."); 94 99 }); -
trunk/LayoutTests/inspector/css/stylesheet-events-basic.html
r189002 r206133 54 54 name: "CheckNoStyleSheets", 55 55 description: "Ensure there are currently no stylesheets.", 56 test : (resolve, reject) =>{56 test(resolve, reject) { 57 57 InspectorTest.expectThat(WebInspector.cssStyleManager.styleSheets.length === 0, "Should be no stylesheets."); 58 58 resolve(); … … 67 67 suite.addTestCase({ 68 68 name: `Add${title}`, 69 test : (resolve, reject) =>{70 InspectorTest.evaluateInPage(addExpression);71 WebInspector.cssStyleManager.singleFireEventListener(WebInspector.CSSStyleManager.Event.StyleSheetAdded, function(event){69 test(resolve, reject) { 70 WebInspector.cssStyleManager.awaitEvent(WebInspector.CSSStyleManager.Event.StyleSheetAdded) 71 .then((event) => { 72 72 addedStyleSheet = event.data.styleSheet; 73 73 InspectorTest.expectThat(addedStyleSheet instanceof WebInspector.CSSStyleSheet, "StyleSheetAdded event should fire."); 74 74 if (checkStyleSheetRemovedCallback) 75 75 checkStyleSheetAddedCallback(addedStyleSheet); 76 resolve(); 77 }); 76 }) 77 .then(resolve, reject); 78 79 InspectorTest.evaluateInPage(addExpression); 78 80 } 79 81 }); … … 82 84 name: `Disable${title}`, 83 85 description: "Disable the newly added stylesheet.", 84 test : (resolve, reject) =>{85 InspectorTest.evaluateInPage("disableStyleSheet()");86 WebInspector.cssStyleManager.singleFireEventListener(WebInspector.CSSStyleManager.Event.StyleSheetRemoved, function(event){86 test(resolve, reject) { 87 WebInspector.cssStyleManager.awaitEvent(WebInspector.CSSStyleManager.Event.StyleSheetRemoved) 88 .then((event) => { 87 89 InspectorTest.assert(event.data.styleSheet instanceof WebInspector.CSSStyleSheet, "Event data should be a CSSStyleSheet"); 88 90 InspectorTest.expectThat(addedStyleSheet === event.data.styleSheet, "StyleSheetRemoved event should fire for the same CSSStyleSheet."); 89 resolve(); 90 }); 91 }) 92 .then(resolve, reject); 93 94 InspectorTest.evaluateInPage("disableStyleSheet()"); 91 95 } 92 96 }); … … 95 99 name: `Enable${title}`, 96 100 description: "Enable the just disabled stylesheet.", 97 test : (resolve, reject) =>{98 InspectorTest.evaluateInPage("enableStyleSheet()");99 WebInspector.cssStyleManager.singleFireEventListener(WebInspector.CSSStyleManager.Event.StyleSheetAdded, function(event){101 test(resolve, reject) { 102 WebInspector.cssStyleManager.awaitEvent(WebInspector.CSSStyleManager.Event.StyleSheetAdded) 103 .then((event) => { 100 104 InspectorTest.assert(event.data.styleSheet instanceof WebInspector.CSSStyleSheet, "Event data should be a CSSStyleSheet"); 101 105 InspectorTest.expectThat(addedStyleSheet !== event.data.styleSheet, "StyleSheetAdded event should fire with a new CSSStyleSheet."); 102 106 addedStyleSheet = event.data.styleSheet; 103 resolve(); 104 }); 107 }) 108 .then(resolve, reject); 109 110 InspectorTest.evaluateInPage("enableStyleSheet()"); 105 111 } 106 112 }); … … 112 118 suite.addTestCase({ 113 119 name: extraDisableTitle, 114 test : (resolve, reject) =>{115 InspectorTest.evaluateInPage(extraDisableExpression);116 WebInspector.cssStyleManager.singleFireEventListener(WebInspector.CSSStyleManager.Event.StyleSheetRemoved, function(event){120 test(resolve, reject) { 121 WebInspector.cssStyleManager.awaitEvent(WebInspector.CSSStyleManager.Event.StyleSheetRemoved) 122 .then((event) => { 117 123 InspectorTest.assert(event.data.styleSheet instanceof WebInspector.CSSStyleSheet, "Event data should be a CSSStyleSheet"); 118 124 InspectorTest.expectThat(addedStyleSheet === event.data.styleSheet, "StyleSheetRemoved event should fire for the same CSSStyleSheet."); 119 resolve(); 120 }); 125 }) 126 .then(resolve, reject); 127 128 InspectorTest.evaluateInPage(extraDisableExpression); 121 129 } 122 130 }); … … 124 132 suite.addTestCase({ 125 133 name: extraEnableTitle, 126 test : (resolve, reject) =>{127 InspectorTest.evaluateInPage(extraEnableExpression);128 WebInspector.cssStyleManager.singleFireEventListener(WebInspector.CSSStyleManager.Event.StyleSheetAdded, function(event){134 test(resolve, reject) { 135 WebInspector.cssStyleManager.awaitEvent(WebInspector.CSSStyleManager.Event.StyleSheetAdded) 136 .then((event) => { 129 137 InspectorTest.assert(event.data.styleSheet instanceof WebInspector.CSSStyleSheet, "Event data should be a CSSStyleSheet"); 130 138 InspectorTest.expectThat(addedStyleSheet !== event.data.styleSheet, "StyleSheetAdded event should fire with a new CSSStyleSheet."); 131 139 addedStyleSheet = event.data.styleSheet; 132 resolve(); 133 }); 140 }) 141 .then(resolve, reject); 142 143 InspectorTest.evaluateInPage(extraEnableExpression); 134 144 } 135 145 }); … … 138 148 suite.addTestCase({ 139 149 name: `Remove${title}`, 140 test : (resolve, reject) =>{141 InspectorTest.evaluateInPage(removeExpression);142 WebInspector.cssStyleManager.singleFireEventListener(WebInspector.CSSStyleManager.Event.StyleSheetRemoved, function(event){150 test(resolve, reject) { 151 WebInspector.cssStyleManager.awaitEvent(WebInspector.CSSStyleManager.Event.StyleSheetRemoved) 152 .then((event) => { 143 153 InspectorTest.expectThat(event.data.styleSheet instanceof WebInspector.CSSStyleSheet, "StyleSheetAdded event should fire."); 144 154 if (checkStyleSheetRemovedCallback) 145 155 checkStyleSheetRemovedCallback(event.data.styleSheet); 146 156 addedStyleSheet = null; 147 resolve(); 148 }); 157 }) 158 .then(resolve, reject); 159 160 InspectorTest.evaluateInPage(removeExpression); 149 161 } 150 162 }); -
trunk/LayoutTests/inspector/css/stylesheet-events-inspector-stylesheet.html
r189104 r206133 11 11 name: "CheckNoStyleSheets", 12 12 description: "Ensure there are currently no stylesheets.", 13 test : (resolve, reject) =>{13 test(resolve, reject) { 14 14 InspectorTest.expectThat(WebInspector.cssStyleManager.styleSheets.length === 0, "Should be no stylesheets."); 15 15 resolve(); … … 20 20 name: "CreateInspectorStyleSheet", 21 21 description: "Creating an inspector stylesheet adds a stylesheet.", 22 test : (resolve, reject) =>{23 CSSAgent.createStyleSheet(WebInspector.frameResourceManager.mainFrame.id);24 WebInspector.cssStyleManager.singleFireEventListener(WebInspector.CSSStyleManager.Event.StyleSheetAdded, function(event){22 test(resolve, reject) { 23 WebInspector.cssStyleManager.awaitEvent(WebInspector.CSSStyleManager.Event.StyleSheetAdded) 24 .then((event) => { 25 25 InspectorTest.expectThat(WebInspector.cssStyleManager.styleSheets.length === 1, "Should be one stylesheet."); 26 26 InspectorTest.assert(event.data.styleSheet instanceof WebInspector.CSSStyleSheet, "Event data should be a CSSStyleSheet"); 27 27 InspectorTest.expectThat(event.data.styleSheet.origin === WebInspector.CSSStyleSheet.Type.Inspector, "StyleSheet origin should be 'inspector'."); 28 resolve(); 29 }); 28 }) 29 .then(resolve, reject); 30 31 CSSAgent.createStyleSheet(WebInspector.frameResourceManager.mainFrame.id); 30 32 } 31 33 }); -
trunk/LayoutTests/inspector/css/stylesheet-events-multiple-documents.html
r189002 r206133 6 6 <script> 7 7 function addSubframe() { 8 variframe = document.createElement("iframe");8 let iframe = document.createElement("iframe"); 9 9 iframe.id = "subframe"; 10 10 iframe.src = "resources/stylesheet-events-subframe.html"; … … 23 23 24 24 function logStyleSheets() { 25 WebInspector.cssStyleManager.styleSheets.sort((a, b) => a.url.localeCompare(b.url)).forEach( function(styleSheet){26 varframeString = styleSheet.parentFrame.id === WebInspector.frameResourceManager.mainFrame.id ? "<mainframe>" : "<childframe>";25 WebInspector.cssStyleManager.styleSheets.sort((a, b) => a.url.localeCompare(b.url)).forEach((styleSheet) => { 26 let frameString = styleSheet.parentFrame.id === WebInspector.frameResourceManager.mainFrame.id ? "<mainframe>" : "<childframe>"; 27 27 InspectorTest.log(`URL: ${sanitizeURL(styleSheet.url)} ${frameString}`); 28 28 }); … … 34 34 name: "CheckStyleSheets", 35 35 description: "Ensure there is currently one stylesheet.", 36 test : (resolve, reject) =>{36 test(resolve, reject) { 37 37 InspectorTest.expectThat(WebInspector.cssStyleManager.styleSheets.length === 1, "Should be one stylesheets."); 38 38 logStyleSheets(); … … 44 44 name: "CheckStyleSheetsAfterAddingSubframe", 45 45 description: "Ensure subframe stylesheets are added.", 46 test : (resolve, reject) =>{47 InspectorTest.evaluateInPage("addSubframe()");48 WebInspector.cssStyleManager.singleFireEventListener(WebInspector.CSSStyleManager.Event.StyleSheetAdded, function(event){46 test(resolve, reject) { 47 WebInspector.cssStyleManager.awaitEvent(WebInspector.CSSStyleManager.Event.StyleSheetAdded) 48 .then((event) => { 49 49 InspectorTest.expectThat(WebInspector.cssStyleManager.styleSheets.length === 2, "Should be two stylesheets."); 50 50 InspectorTest.expectThat(event.data.styleSheet.parentFrame !== WebInspector.frameResourceManager.mainFrame.id, "New StyleSheet is for a subframe"); 51 51 logStyleSheets(); 52 resolve(); 53 }); 52 }) 53 .then(resolve, reject); 54 55 InspectorTest.evaluateInPage("addSubframe()"); 54 56 } 55 57 }); … … 58 60 name: "CheckStyleSheetsAfterRemovingSubframe", 59 61 description: "Ensure subframe stylesheets are removed.", 60 test : (resolve, reject) =>{61 InspectorTest.evaluateInPage("removeSubframe()");62 WebInspector.cssStyleManager.singleFireEventListener(WebInspector.CSSStyleManager.Event.StyleSheetRemoved, function(event){62 test(resolve, reject) { 63 WebInspector.cssStyleManager.awaitEvent(WebInspector.CSSStyleManager.Event.StyleSheetRemoved) 64 .then((event) => { 63 65 InspectorTest.expectThat(WebInspector.cssStyleManager.styleSheets.length === 1, "Should be one stylesheet."); 64 66 InspectorTest.expectThat(event.data.styleSheet.parentFrame !== WebInspector.frameResourceManager.mainFrame.id, "Removed StyleSheet is for a subframe"); 65 67 logStyleSheets(); 66 resolve(); 67 }); 68 }) 69 .then(resolve, reject); 70 71 InspectorTest.evaluateInPage("removeSubframe()"); 68 72 } 69 73 });
Note: See TracChangeset
for help on using the changeset viewer.