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

Unified Diff: LayoutTests/fast/dom/private_script_unittest.html

Issue 413393003: Blink-in-JS: Implement internal APIs exposed only to private scripts (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 months 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
Index: LayoutTests/fast/dom/private_script_unittest.html
diff --git a/LayoutTests/fast/dom/private_script_unittest.html b/LayoutTests/fast/dom/private_script_unittest.html
index 9c42460cf4f524ad4ba85a2b7a87f76723a7ec51..20b248259a429f5e5b896cb63763afb77f793b84 100644
--- a/LayoutTests/fast/dom/private_script_unittest.html
+++ b/LayoutTests/fast/dom/private_script_unittest.html
@@ -66,6 +66,15 @@ shouldThrow('privateScriptTest.nodeAttributeThrowsIndexSizeError');
shouldThrow('privateScriptTest.nodeAttributeThrowsIndexSizeError = null');
shouldThrow('privateScriptTest.voidMethodThrowsSyntaxError()');
+shouldBe('privateScriptTest.addIntegerImplementedInCPP(111, 222)', '333');
+shouldBeEqualToString('privateScriptTest.stringAttributeImplementedInCPP', 'undefined');
+privateScriptTest.stringAttributeImplementedInCPP = "foo";
+shouldBeEqualToString('privateScriptTest.stringAttributeImplementedInCPP', 'foo');
+
+// These tests are important. [OnlyExposedToPrivateScript] APIs should not be visible to user's JavaScript.
+shouldBeUndefined('privateScriptTest.addIntegerImplementedInCPPForPrivateScriptOnly');
+shouldBeUndefined('privateScriptTest.stringAttributeImplementedInCPPForPrivateScriptOnly');
+
</script>
</body>
</html>
« no previous file with comments | « no previous file | Source/bindings/core/v8/V8DOMConfiguration.h » ('j') | Source/bindings/templates/interface.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698