diff --git a/test/sanity/issue4679-process-event-uncaughtException/index.html b/test/sanity/issue4679-process-event-uncaughtException/index.html
new file mode 100644
index 0000000000..e0dae09e89
--- /dev/null
+++ b/test/sanity/issue4679-process-event-uncaughtException/index.html
@@ -0,0 +1,25 @@
+
+
+
+
+ 4679
+
+
+
+
+
+
diff --git a/test/sanity/issue4679-process-event-uncaughtException/package.json b/test/sanity/issue4679-process-event-uncaughtException/package.json
new file mode 100644
index 0000000000..735ae248cf
--- /dev/null
+++ b/test/sanity/issue4679-process-event-uncaughtException/package.json
@@ -0,0 +1,4 @@
+{
+ "name": "4679",
+ "main": "index.html"
+}
diff --git a/test/sanity/issue4679-process-event-uncaughtException/test.py b/test/sanity/issue4679-process-event-uncaughtException/test.py
new file mode 100644
index 0000000000..ea3224167f
--- /dev/null
+++ b/test/sanity/issue4679-process-event-uncaughtException/test.py
@@ -0,0 +1,27 @@
+import os
+import sys
+import platform
+sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
+from nw_util import *
+
+from selenium import webdriver
+from selenium.webdriver.chrome.options import Options
+from selenium.webdriver.common.action_chains import ActionChains
+
+if platform.system() == 'Windows':
+ print 'Skipped for Windows platform'
+ sys.exit(0)
+
+chrome_options = Options()
+chrome_options.add_argument("nwapp=" + os.path.dirname(os.path.abspath(__file__)))
+
+driver = webdriver.Chrome(executable_path=os.environ['CHROMEDRIVER'], chrome_options=chrome_options)
+driver.implicitly_wait(2)
+try:
+ print driver.current_url
+ result = wait_for_element_id(driver, "result")
+ assert("CAUGHT" in result)
+ print "Got output from index page"
+finally:
+ driver.quit()
+