Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Unified Diff: LayoutTests/fast/canvas/canvas-context-attributes-default-value.html

Issue 795833004: Use dictionaries for context creation attributes. Eliminate custom bindings. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased. Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/canvas/canvas-context-attributes-default-value-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/canvas/canvas-context-attributes-default-value.html
diff --git a/LayoutTests/fast/canvas/canvas-context-attributes-default-value.html b/LayoutTests/fast/canvas/canvas-context-attributes-default-value.html
index 46378c6ab9a95361f01a6958cfe0e6e7408e6b85..f23a5386bdb4eed9113967f5eeb84bfa48fe9e96 100644
--- a/LayoutTests/fast/canvas/canvas-context-attributes-default-value.html
+++ b/LayoutTests/fast/canvas/canvas-context-attributes-default-value.html
@@ -4,10 +4,14 @@
<script src="../../resources/js-test.js"></script>
<script>
- var checkAttributes = {
+ var trueAttributes = {
alpha : true,
};
+ var falseAttributes = {
+ alpha : false,
+ };
+
function testAttributes(expectedAttributes, checkValue) {
if (arguments.length != 1 && arguments.length != 2)
@@ -37,15 +41,15 @@
<script>
debug("Testing default value:");
- testAttributes(checkAttributes);
+ testAttributes(trueAttributes);
debug("")
debug("Testing undefined value:");
- testAttributes(checkAttributes, undefined);
+ testAttributes(trueAttributes, undefined);
debug("")
debug("Testing null value:");
- testAttributes(checkAttributes, null);
+ testAttributes(falseAttributes, null);
debug("")
</script>
« no previous file with comments | « no previous file | LayoutTests/fast/canvas/canvas-context-attributes-default-value-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698