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

Side by Side Diff: LayoutTests/fast/css/getComputedStyle/computed-style-non-element-parameter.html

Issue 752713002: Make getComputedStyle throw for incorrect first parameter (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: V2 Created 6 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 unified diff | Download patch
OLDNEW
(Empty)
1 <div id="result"></div>
2 <script>
3 if (window.testRunner)
tkent 2014/11/25 22:59:28 Indent the whole content of <script> is not helpfu
4 testRunner.dumpAsText();
5
6 var noException = true;
7 try {
8 getComputedStyle(null);
9 noException = false;
tkent 2014/11/25 22:59:28 Please import ../../../resources/js-test.js, and u
10 } catch(e) {};
11 try {
12 getComputedStyle(undefined);
13 noException = false;
14 } catch(e) {};
15 var txtNode = document.createTextNode("foo");
16 try {
17 getComputedStyle(txtNode);
18 noException = false;
19 } catch(e) {};
20
21 document.getElementById("result").innerText = noException ? "PASS" : "FAIL"
22 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698