Add a very minimal CSSAgent
Also fixed the exception caused by IndexedDB being missing. It was there, just not used by inspector.sky. R=esprehn@chromium.org, abarth@chromium.org Review URL: https://codereview.chromium.org/662523003
This commit is contained in:
@@ -0,0 +1 @@
|
||||
Done!
|
||||
18
engine/src/flutter/tests/inspector/css-computed-style.sky
Normal file
18
engine/src/flutter/tests/inspector/css-computed-style.sky
Normal file
@@ -0,0 +1,18 @@
|
||||
<html>
|
||||
<link rel="import" href="../resources/chai.sky" />
|
||||
<link rel="import" href="/sky/framework/inspector/css-agent.sky" as="CSSAgent" />
|
||||
<script>
|
||||
var fakeDOMAgent = {
|
||||
getNodeForId: function(id) {
|
||||
return document.documentElement;
|
||||
}
|
||||
};
|
||||
|
||||
var cssAgent = new CSSAgent(fakeDOMAgent);
|
||||
cssAgent.enable();
|
||||
var response = cssAgent.getComputedStyleForNode({nodeId: '1'});
|
||||
|
||||
assert.isTrue(response["computedStyle"].length > 0);
|
||||
internals.notifyTestComplete("Done!");
|
||||
</script>
|
||||
</html>
|
||||
Reference in New Issue
Block a user