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

Unified Diff: LayoutTests/webaudio/audiocontext-suspend-resume.html

Issue 1154523007: Avoid depending on Promise.prototype.toString() in layout tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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/webaudio/audiocontext-suspend-resume.html
diff --git a/LayoutTests/webaudio/audiocontext-suspend-resume.html b/LayoutTests/webaudio/audiocontext-suspend-resume.html
index 99190ab92e38345c24e308359be7e9f3b2564470..8c16380b9a6cc867460b063fafd397231b770ddd 100644
--- a/LayoutTests/webaudio/audiocontext-suspend-resume.html
+++ b/LayoutTests/webaudio/audiocontext-suspend-resume.html
@@ -53,7 +53,7 @@
// that on an offline context. Thus, check that suspend() on an
// OfflineAudioContext rejects the promise.
shouldNotThrow("p1 = offlineContext.suspend()");
- shouldBeType(p1, Promise);
+ shouldBeType("p1", "Promise");
p1.then(
handlePromise(testFailed, "offlineContext.suspend() should have been rejected for an offline context"),
function (e) {
@@ -76,7 +76,7 @@
// that on an offline context. Thus, check that resume() on an
// OfflineAudioContext rejects the promise.
shouldNotThrow("p2 = offlineContext.resume()");
- shouldBeType(p2, Promise);
+ shouldBeType("p2", "Promise");
// Resume doesn't actually resume an offline context
shouldBeEqualToString("offlineContext.state", "suspended");
« no previous file with comments | « LayoutTests/fast/js/Promise-native-then-expected.txt ('k') | LayoutTests/webaudio/audiocontext-suspend-resume-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698