annotate iframe-resizer/test/resources/testLib.js @ 0:ac5f9272033b draft

first upload
author saskia-hiltemann
date Tue, 01 Jul 2014 11:42:23 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
1 function sendMessage(msg){
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
2 'use strict';
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
3 var msgId = '[iFrameSizerTest]:';
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
4
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
5 document.getElementsByTagName('iframe')[0].contentWindow.postMessage( msgId + msg, '*' );
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
6 }