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

Unified Diff: sdk/lib/html/scripts/generator.py

Issue 11697011: Fixing up history test to pass properly on supported platforms. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixing dartium. Created 8 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
Index: sdk/lib/html/scripts/generator.py
diff --git a/sdk/lib/html/scripts/generator.py b/sdk/lib/html/scripts/generator.py
index 4f5b290e07ccdb2105875d0bf41ee2878c1d80da..28d5ad46dc338b686aa77d74e2b9c5676f8337bb 100644
--- a/sdk/lib/html/scripts/generator.py
+++ b/sdk/lib/html/scripts/generator.py
@@ -622,12 +622,21 @@ _indexed_db_annotations = [
"@Experimental()",
]
+_history_annotations = [
+ "@SupportedBrowser(SupportedBrowser.CHROME)",
+ "@SupportedBrowser(SupportedBrowser.FIREFOX)",
+ "@SupportedBrowser(SupportedBrowser.IE, '10')",
+ "@SupportedBrowser(SupportedBrowser.SAFARI)",
+]
+
# Annotations to be placed on generated members.
# The table is indexed as:
# INTERFACE: annotations to be added to the interface declaration
# INTERFACE.MEMBER: annotation to be added to the member declaration
dart_annotations = {
'DOMWindow.indexedDB': _indexed_db_annotations,
+ 'History.pushState': _history_annotations,
+ 'History.replaceState': _history_annotations,
'HTMLContentElement': [
"@SupportedBrowser(SupportedBrowser.CHROME, '25')",
"@Experimental()",

Powered by Google App Engine
This is Rietveld 408576698