~ubuntu-branches/ubuntu/raring/qtwebkit-source/raring-proposed

« back to all changes in this revision

Viewing changes to ManualTests/inspector-wrappers/console-alert-this.html

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2013-02-18 14:24:18 UTC
  • Revision ID: package-import@ubuntu.com-20130218142418-eon0jmjg3nj438uy
Tags: upstream-2.3
ImportĀ upstreamĀ versionĀ 2.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html>
 
2
<head>
 
3
<script src="inspector-wrappers-test-utils.js"></script>
 
4
<script>
 
5
window.alert = function(consolePanel) {
 
6
  var _addMessage = consolePanel.addMessage;
 
7
  consolePanel.addMessage = function() { 
 
8
    doAttack(consolePanel.addMessage);
 
9
    consolePanel.addMessage = _addMessage;  
 
10
  }
 
11
}
 
12
</script>
 
13
</head>
 
14
<body>
 
15
<script>instructions({console: true, trigger: "alert(this)"});</script>
 
16
</body>
 
17
</html>