Commit 7847b5db authored by Jérome Perrin's avatar Jérome Perrin

monaco_editor: fixup broken commit

3d3ee5da had syntax error and test were
not updated for new behavior
parent 5d5e0c49
......@@ -172,7 +172,8 @@
.push(addExtraLibrary('./monaco-jio.d.ts', 'jio'));
}
if (modification_dict.hasOwnProperty('editable')){
gadget.editor.updateOptions({readOnly: !this.state.editable});
this.editor.updateOptions({readOnly: !this.state.editable});
}
}
return queue;
})
......
......@@ -90,9 +90,16 @@
<td>//a[@data-i18n="View"]</td><td></td></tr>
<tr><td>click</td>
<td>//a[@data-i18n="View"]</td><td></td></tr>
<tr><td>waitForElementPresent</td>
<td>//div[@data-gadget-scope="editor"]//iframe</td><td></td></tr>
<tr><td>selectFrame</td>
<td>//div[@data-gadget-scope="editor"]//iframe</td><td></td></tr>
<tr><td>waitForText</td>
<td>//div[@data-gadget-scope="field_my_text_content"]//pre</td>
<td>Hello</td></tr>
<td>//body</td>
<!-- we have line number -->
<td>glob:1*Hello</td></tr>
<tr><td>selectFrame</td>
<td>relative=top</td><td></td></tr>
</tbody></table>
</body>
......
......@@ -66,9 +66,15 @@
<tr><td>click</td>
<td>//div[@class="actions"]//span[text() = "View"]</td><td></td></tr>
<tr><td>waitForElementPresent</td>
<td>css=.bottom iframe</td><td></td></tr>
<tr><td>selectFrame</td>
<td>css=.bottom iframe</td><td></td></tr>
<tr><td>waitForText</td>
<td>css=.bottom pre</td>
<td>Hello</td></tr>
<td>//body</td>
<td>glob:1*Hello</td></tr>
<tr><td>selectFrame</td>
<td>relative=top</td><td></td></tr>
</tbody></table>
</body>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment