REGRESSION(r204163): [GTK] API test /webkit2/WebKitSecurityManager/file-xhr is failing
authorcarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Sep 2016 15:48:22 +0000 (15:48 +0000)
committercarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Sep 2016 15:48:22 +0000 (15:48 +0000)
commit952ec03267ba9731a93c72c32a416b5d23d3d6c7
tree971c16a4517a024be8b51106c48a6d945e29144b
parent55285d38d22aebb98386251ea60e7ed61b38520a
REGRESSION(r204163): [GTK] API test /webkit2/WebKitSecurityManager/file-xhr is failing
https://bugs.webkit.org/show_bug.cgi?id=161607

Reviewed by Michael Catanzaro.

Since r204163, in case of cross origin error when loading the XHR, the load fails and an error message is shown
in the console, but there isn't any js expcetion, which is what we were checking. Now, we check that there
aren't exceptions, and that the error message is sent to the console.

* Scripts/run-gtk-tests:
(TestRunner):
* TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebContext.cpp:
(consoleMessageReceivedCallback):
(testWebContextSecurityFileXHR):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@206304 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Tools/ChangeLog
Tools/Scripts/run-gtk-tests
Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebContext.cpp