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

Side by Side Diff: Source/core/testing/Internals.idl

Issue 232563003: API functions returning Promises should not throw exceptions. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2013 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 boolean loseSharedGraphicsContext3D(); 257 boolean loseSharedGraphicsContext3D();
258 258
259 [RaisesException] void forceCompositingUpdate(Document document); 259 [RaisesException] void forceCompositingUpdate(Document document);
260 260
261 void setZoomFactor(float factor); 261 void setZoomFactor(float factor);
262 262
263 [RaisesException] void setShouldRevealPassword(Element element, boolean reve al); 263 [RaisesException] void setShouldRevealPassword(Element element, boolean reve al);
264 264
265 [CallWith=ScriptState] Promise createResolvedPromise(any value); 265 [CallWith=ScriptState] Promise createResolvedPromise(any value);
266 [CallWith=ScriptState] Promise createRejectedPromise(any reason); 266 [CallWith=ScriptState] Promise createRejectedPromise(any reason);
267 [CallWith=ExecutionContext] Promise addOneToPromise(Promise promise); 267 [CallWith=ScriptState] Promise addOneToPromise(Promise promise);
268 [CallWith=ScriptState, RaisesException] Promise promiseCheck(long arg1, bool ean arg2, Dictionary arg3, DOMString arg4, DOMString[] arg5);
269 [CallWith=ScriptState] Promise promiseCheckWithoutExceptionState(Dictionary arg1, DOMString arg2, DOMString... variadic);
270 [CallWith=ScriptState] Promise promiseCheckRange([EnforceRange] octet arg1);
268 271
269 void setValueForUser(Element element, DOMString value); 272 void setValueForUser(Element element, DOMString value);
270 273
271 DOMString textSurroundingNode(Node node, long x, long y, unsigned long maxLe ngth); 274 DOMString textSurroundingNode(Node node, long x, long y, unsigned long maxLe ngth);
272 275
273 void setFocused(boolean focused); 276 void setFocused(boolean focused);
274 277
275 [RaisesException] boolean ignoreLayoutWithPendingStylesheets(Document docume nt); 278 [RaisesException] boolean ignoreLayoutWithPendingStylesheets(Document docume nt);
276 279
277 // These functions are for testing NetInfo. You must call setNetworkStateNot ifierTestOnly(true) 280 // These functions are for testing NetInfo. You must call setNetworkStateNot ifierTestOnly(true)
278 // before calling setNetworkConnectionInfo. 281 // before calling setNetworkConnectionInfo.
279 void setNetworkStateNotifierTestOnly(boolean testOnly); 282 void setNetworkStateNotifierTestOnly(boolean testOnly);
280 [RaisesException] void setNetworkConnectionInfo(DOMString type); 283 [RaisesException] void setNetworkConnectionInfo(DOMString type);
281 284
282 // This function is for testing HitRegions on Canvas2D. 285 // This function is for testing HitRegions on Canvas2D.
283 unsigned long countHitRegions(CanvasRenderingContext2D context); 286 unsigned long countHitRegions(CanvasRenderingContext2D context);
284 287
285 DOMString serializeNavigationMarkup(Document document); 288 DOMString serializeNavigationMarkup(Document document);
286 }; 289 };
OLDNEW
« Source/bindings/tests/idls/TestObject.idl ('K') | « Source/core/testing/Internals.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698